Hi ,
I am wanting to run this :
while true do
> ps -ef | grep -i uoq0248 | grep -v grep | wc -l
> if [ num_procs -eq 0 ]
> then
> su - oqbchprd -c nohup uoq0248 &
> sleep 10
> done
syntax error: `done' unexpected
I do not want this as a perm script , but just to keep an eye on one of the process... any idea while its not working ?
cheers
visvid
I am wanting to run this :
while true do
> ps -ef | grep -i uoq0248 | grep -v grep | wc -l
> if [ num_procs -eq 0 ]
> then
> su - oqbchprd -c nohup uoq0248 &
> sleep 10
> done
syntax error: `done' unexpected
I do not want this as a perm script , but just to keep an eye on one of the process... any idea while its not working ?
cheers
visvid