04-12-2006
4,
0
Join Date: Apr 2006
Last Activity: 14 April 2006, 5:16 PM EDT
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
Help with school homework
ok its a simple script, but i can't get it to run right. i'm totally lost. can anyone help me with this.
heres the question........create a shell script called minute.bash that starts the command
labs/bash/count.sh and lets it run for 1 minute and then stops it.
count.sh is a simple counting program that outputs 1,2,3,4,5,6 up to 10 and starts over.
this is what i'm typing in Vi
#!/bin/bash
#uses count.sh and lets it run for one minute.
#written by Adam Jones
/labs/bash/count.sh
sleep 60;
done
thats what i'm typing. the program just keeps on counting and never stops. if i put sleep above the count.sh it doesn't start for 1 minute. any help would be awesome. thankssss in advance.