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 ... ... |
How about adding a line like this.
ping -c100 127.0.0.1 > /dev/null Brian |
I believe there is a wait command or something similar that allows you to pause the line in the script for so many seconds.
|
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'.
|
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. |