LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Waiting time for a script (https://www.linuxquestions.org/questions/linux-newbie-8/waiting-time-for-a-script-607121/)

shipon_97 12-16-2007 10:35 AM

Waiting time for a script
 
Dear Friend ,

I have a Linux server with Oracle . I have a oracle script which starts during startup of the server .When Linux server is up then all the scripts of Oracle are also startup .But I have some problem with this startup script because another some services are included this scripts .

Now , I want a situation where my Oracle script runs after 2/3 minutes later from the server startup , i.e., after booting my Linux server my oracle script is not running that moment , script run after few moments from the startup of the server .


Can anyone plz help me ... ...

Brian1 12-16-2007 11:17 AM

How about adding a line like this.
ping -c100 127.0.0.1 > /dev/null

Brian

snowman81 12-16-2007 11:24 AM

I believe there is a wait command or something similar that allows you to pause the line in the script for so many seconds.

unSpawn 12-16-2007 11:48 AM

If the 'at' service is running and your user account has been cleared to use 'at' then putting this line in /etc/rc.d/rc/local or equivalent: 'echo /etc/rc.d/init.d/oracle start | at now + 3 minutes' should do. If you don't run 'at' then try 'sleep 3m; exec /etc/rc.d/init.d/oracle start'.

ethics 12-16-2007 05:33 PM

I usually use sleep when i need to pause a script, but only because i haven't looked into at.

Code:

man sleep


All times are GMT -5. The time now is 10:35 PM.