LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   waiting script (https://www.linuxquestions.org/questions/linux-software-2/waiting-script-232979/)

Sn7 09-20-2004 12:17 PM

waiting script
 
How can I write a linux script that will execute a command after say 5 seconds...

Example: After 5 seconds the command init6 is executed?

Thanks

mikedeatworld 09-20-2004 12:21 PM

http://linux.about.com/library/cmd/blcmdl_na.htm

try the command: time

Sn7 09-20-2004 12:50 PM

Say I've got a scrript one.sh and two.sh, I want "one.sh" to be terminated after 10 seconds and script "two.sh" must carry on, is this possible?

Thanks


All times are GMT -5. The time now is 11:05 AM.