Home » RDBMS Server » Server Administration » please
please [message #59301] Tue, 11 November 2003 00:10 Go to next message
M. Khaled
Messages: 67
Registered: April 2002
Member
While i write this command for autoscheduling ,this is working but after rebooting this is gone.How could this be put permanently.please help..
this is the command..
echo "service network start"&#124at now+2minutes
Re: please [message #59308 is a reply to message #59301] Tue, 11 November 2003 05:47 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
Use cronjobs.
Re: please [message #59347 is a reply to message #59308] Wed, 12 November 2003 23:21 Go to previous messageGo to next message
M. Khaled
Messages: 67
Registered: April 2002
Member
Could you give me an example for cronjobs for the command 'service network stop' after some interval
Thanks in advance.
Re: please [message #59365 is a reply to message #59347] Thu, 13 November 2003 10:53 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
On the Unix prompt, do this

-- get the current crontab into a text file
$ crontab -l > oracle.cron

-- edit oracle.cron to add your cronjob ( use vi or any other text editor you are comfortable with)

for eg) add the following like to oracle.cron

0,15,30,45 * * * * /path/service network stop 2>&1

this will make your command execute every 15 min .

Also see my other posting

Previous Topic: big problem!!!
Next Topic: SQLPLUS COPY NOT WORKING
Goto Forum:
  


Current Time: Fri Sep 20 15:31:36 CDT 2024