Mike / Nathan,
I think I have it. Thanks for your efforts. Especially your Mike.
Putting the exec statement inside my timeout logic allows me to echo a failure
message, then disable output and start killing things.
I have only tested in my test script, but I will be trying it in my 068 script
>> If you want your script to send all output to /dev/null this works
>> pretty good, I have tried several things to turn off redirection to
>> null, but have come up empty.
>> exec >/dev/null 2>&1 # Send all output to /dev/null
>> The subshell thing was one I had considered, but I experimented with it
>> early and wasn't sure about how you were killing the subprocess so I
>> abandoned investigation of that. Anyhow, with more of the code I'm sure
>> I could come up with something.
>> My test script which I got working was something along the lines of:
>> exec >/dev/null 2>&1
>> while true; do
>> sleep 1
>> done &
>> # something to turn off redirection
>> Anyhow, good luck.
Deployment and Integration Specialist
Compaq ASE - Tru64 v4, v5
Compaq Master ASE - SAN Architect
The Norcross Group