[lug-nuts] Simple shelll script question

From: Scott Tyson (tysons@deepwell.com)
Date: Wed Jan 05 2000 - 16:44:17 PST


I'm not much of a shell programmer. I can do this in perl but I need to
do it in bash. What I need is script that will launch a program then
wait for that program to terminate and when it does wait X seconds then
restart the program. So the script itself would run all the time making
sure the program runs all the time.

Something like this:

#!/bin/bash
cd dirName
TOP
./programName
wait X
goto TOP

How would I do this with bash?

Scott

****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:09 PST