we have Redhat 5.5 on server. Recently we tried to use "sleep" command on batch job script some sleep work but some not sleep. any one have ideal?
==== sample program ===
#/bin/bash set -v
program1 sleep 30 program2 sleep 60 program3 sleep 40 ...
On Fri, 7 Jan 2011, mcclnx mcc wrote:
we have Redhat 5.5 on server. Recently we tried to use "sleep" command on batch job script some sleep work but some not sleep. any one have ideal?
==== sample program ===
#/bin/bash set -v
program1 sleep 30 program2 sleep 60 program3 sleep 40 ...
sleep doesn't just sleep for a set number of seconds, it sleeps for up to that many seconds or until signalled. Is it possible that these sleep processes are being signalled by some other process? I've known a cluster scheduler to send excessive signals to running processes. You'd expect to see something on stderr in that case as far as I know, but depending on how this is being run you might not be capturing that.
jh
well, you didn't tell what exactly doesn't work and how you found out.
Kai
From: mcclnx mcc mcclnx@yahoo.com.tw
we have Redhat 5.5 on server. Recently we tried to use "sleep" command on batch job script some sleep work but some not sleep. any one have ideal? #/bin/bash set -v program1 sleep 30 program2 sleep 60 program3 sleep 40 ...
Maybe try to replace each sleep with: (time strace sleep xx) 2>> sleeps.log ... and check the logs...
JD
mcclnx mcc wrote:
we have Redhat 5.5 on server. Recently we tried to use "sleep" command on batch job script some sleep work but some not sleep. any one have ideal?
Do you mean that you have Red Hat Enterprise Linux 5.5? If so you should be getting your support from RedHat. Or do you have CentOS 5.5?
Its not clear from what you've said, its rather ambiguous.
Sharon. 19:34:49 up 34 days, 5:29, 2 users, load average: 1.76, 1.54, 1.66 A taste of linux http://www.sharons.org.uk/taste/index.html efever http://www.efever.blogspot.com/ Centos 5.5, KDE 3.5.4-25, OpenOffice 3.2.1 Registered Linux user 334501