hi all
im trying to :
while true
do
command
sleep 1000
done
the problem is that after the 24:00 hour the script stop
any idea
hi all
im trying to :
while true
do
command
sleep 1000
done
the problem is that after the 24:00 hour the script stop
any idea
There is nothing in the script that will make it stop.
How is it running, a nohup, telnet or ssh session?
Is there ever any user interaction?
no it is a script that collect info and should not stop
the problem that after the 00:00 AM it stop with out a reason
Yes, but how does it run? How is it started?
spawned job?
cron?
inittab?
telnet?
ssh?
the program run manualy in the first time and run until it gets "Ctrl C" from the user
the env is bash on sun solaris
Hey there,
Also, what's the "command" that's being run? That may be an issue.
If you're running the command manually, are you running it from a remote terminal or a local console? Assuming you're running it and leaving it to run, is there any process on that box (or on your vpn/network connection) that disconnects users at midnight?
Basically, I agree with the responses above and think it either has to do very specifically with how you're invoking the program and/or what the command is that's being running every n number of seconds.
Thanks,
, Mike
So it is run interactively in a terminal of some kind, what kind of terminal,
dtterm? xterm? ssh? telnet? console?
If its run manually from a terminal then its not guarded against SIGHUP signal,
then a line disruption or terminal being disconnected can kill the kicked of process.
Or is that something like this ?
terminal_session > program started
after some time
terminal_session > program halted without no reason
( assuming there is no problem with the connectivity )