Date: Mon, 5 Jan 1998 19:21:25 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: kadex <kadex@design.paume.itb.ac.id> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to modify it ? Message-ID: <Pine.BSF.3.96.980105192026.1402K-100000@gdi.uoregon.edu> In-Reply-To: <34AF1383.650C@design.paume.itb.ac.id>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Jan 1998, kadex wrote: > dear sir, > i have some script.. here it is. > > -------------------------------------- > while : ; > do > #start > echo "hello..!!" #first command > cd /etc #second command > whoami #third command > #end > done Try creating a file with just the commands to execute, then use while : ; do exec `/usr/games/random < /file/with/commands' done See `man 6 random' for info. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980105192026.1402K-100000>