Hi all,
basicaly what i'm doing is writing a script that will check a environment variable periodically while running (looping)in the background (&)
i need to be able to set/change this variable with any script.
The variable name i have chosen to use is 'STATUS', which will have a number value of 0 - 2.
e.g.
#!/bin/sh
start of loop
check STATUS env var
if (0)
sleep 60
exit
elseif (1)
do something
sleep longer
exit
fi
go to start of loop
Hope this is clear, any help appreciated
JayBot!
"Always know what you say, but don't always say what you know!"
basicaly what i'm doing is writing a script that will check a environment variable periodically while running (looping)in the background (&)
i need to be able to set/change this variable with any script.
The variable name i have chosen to use is 'STATUS', which will have a number value of 0 - 2.
e.g.
#!/bin/sh
start of loop
check STATUS env var
if (0)
sleep 60
exit
elseif (1)
do something
sleep longer
exit
fi
go to start of loop
Hope this is clear, any help appreciated
JayBot!
"Always know what you say, but don't always say what you know!"