Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-16-2007, 11:35 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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 ... ...
Old 12-16-2007, 12:17 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
How about adding a line like this.
ping -c100 > /dev/null

Old 12-16-2007, 12:24 PM   #3
Registered: Aug 2006
Location: Michigan
Distribution: Ubuntu
Posts: 282

Rep: Reputation: 30
I believe there is a wait command or something similar that allows you to pause the line in the script for so many seconds.
Old 12-16-2007, 12:48 PM   #4
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
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'.
Old 12-16-2007, 06:33 PM   #5
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

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

 man sleep


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
My browser, all day today: 'waiting for' ..waiting.. waiting .. GrapefruiTgirl LQ Suggestions & Feedback 18 05-25-2007 06:35 AM
bash script suggestions for waiting for ssh -L iggymac Programming 4 03-22-2005 08:04 PM
Selectively 'waiting' in a shell script subu_s Programming 2 12-20-2004 06:57 AM
phase2 negotiation failed due to time up waiting for phase1 hishamiqbal Linux - Security 1 11-16-2004 03:38 PM
waiting script Sn7 Linux - Software 2 09-20-2004 01:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration