LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-16-2007, 10:35 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
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, 11:17 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

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

Brian
 
Old 12-16-2007, 11:24 AM   #3
snowman81
Member
 
Registered: Aug 2006
Location: Michigan
Distribution: Ubuntu
Posts: 237

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, 11:48 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
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, 05:33 PM   #5
ethics
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.

Code:
 man sleep
 
  


Reply


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 linuxquestions.org...' ..waiting.. waiting .. GrapefruiTgirl LQ Suggestions & Feedback 18 05-25-2007 05:35 AM
bash script suggestions for waiting for ssh -L iggymac Programming 4 03-22-2005 07:04 PM
Selectively 'waiting' in a shell script subu_s Programming 2 12-20-2004 05:57 AM
phase2 negotiation failed due to time up waiting for phase1 hishamiqbal Linux - Security 1 11-16-2004 02:38 PM
waiting script Sn7 Linux - Software 2 09-20-2004 12:50 PM


All times are GMT -5. The time now is 05:52 PM.

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