dbTalk Databases Forums  

Sleep on fast server

comp.databases.pick comp.databases.pick


Discuss Sleep on fast server in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default Sleep on fast server - 10-13-2003 , 09:20 AM






Just upgraded a RedHat D3 to a newer server and everything is wonderful,
but the sleep command times out immediately.

1. Is there a workaround ?

2. Since this is used to wait until 2:00 AM and then do some batch
processing and then a filesave, perhaps I could set up a cron job to
execute /usr/bin/d3 and log on as a specified user, thus executing my
daily batch job. Can this be done ?


TIA for any and all comments.

Reply With Quote
  #2  
Old   
System Admin
 
Posts: n/a

Default Re: Sleep on fast server - 10-13-2003 , 12:02 PM






What happens when you setup a job to run with the background command?

spam (AT) jefdevco (DOT) com wrote:
Quote:
Just upgraded a RedHat D3 to a newer server and everything is
wonderful, but the sleep command times out immediately.

1. Is there a workaround ?

2. Since this is used to wait until 2:00 AM and then do some batch
processing and then a filesave, perhaps I could set up a cron job to
execute /usr/bin/d3 and log on as a specified user, thus executing my
daily batch job. Can this be done ?


TIA for any and all comments.



Reply With Quote
  #3  
Old   
(Patrick Latimer)
 
Posts: n/a

Default Re: Sleep on fast server - 10-13-2003 , 05:20 PM



spam (AT) jefdevco (DOT) com wrote:
Quote:
Just upgraded a RedHat D3 to a newer server and everything is wonderful,
but the sleep command times out immediately.

1. Is there a workaround ?

2. Since this is used to wait until 2:00 AM and then do some batch
processing and then a filesave, perhaps I could set up a cron job to
execute /usr/bin/d3 and log on as a specified user, thus executing my
daily batch job. Can this be done ?

Wouldn't it be easier to write a small program?
INPUT BTIME
BTIME=ICONV(BTIME)
UNTIL BTIME=TIME() DO
RQM;RQM;RQM;......
REPEAT
(KICK OFF THE PROCESS

If would of course need to be a bit more elegant
to avoid key errors, and traverse days. Have you
contacted RD support?

HTH, Patrick <;=)


Quote:
TIA for any and all comments.

--
"Wrong is wrong, even if everyone is doing it.
Right is right, even if no one is doing it." ~ St. Augustine



Reply With Quote
  #4  
Old   
alauts
 
Posts: n/a

Default Re: Sleep on fast server - 10-13-2003 , 09:02 PM



Commands executed in such a manner are a security risk. Why not use Pick's
scheduler to run the job instead?

<spam (AT) jefdevco (DOT) com> wrote

Quote:
Just upgraded a RedHat D3 to a newer server and everything is wonderful,
but the sleep command times out immediately.

1. Is there a workaround ?

2. Since this is used to wait until 2:00 AM and then do some batch
processing and then a filesave, perhaps I could set up a cron job to
execute /usr/bin/d3 and log on as a specified user, thus executing my
daily batch job. Can this be done ?


TIA for any and all comments.



Reply With Quote
  #5  
Old   
Frank Winans
 
Posts: n/a

Default Re: Sleep on fast server - 10-14-2003 , 07:10 AM



Quote:
D3/*x sleep command of basic times out immediately.

1. Is there a workaround ?

execute '!sleep 40' capturing bucket
to get a 40 second delay.
See man sleep for details. If you need to kill/logoff this process start
by
doing !kill -9 444 where 444 is the sleep process as shown in ps.
See man ps for details. You really should find out why sleep isn't working.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.