Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continuous Logical Log Backups.. 1

Status
Not open for further replies.

ipswalia

Technical User
Jan 11, 2002
6
AU
Can some one help me Automating ontape -c or ontape -a for logical logs backup.If i close the window the process dies.I am sure there must be a way to overcome this.Does some one have the script?

Thanks for your help.

Inderpal
 
Ip,

Just run the process using the nohup command to put the process into the background, then when you log off the process will continue to run:

i.e.

nohup ontape -c &

The output is sent to nohup.out - then close the window and log back on and the process will still be running. PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
PSD,

I tried but when I close the window the process is stopped.I am pasting the results from the window:
============================
informix@sf-cdev-db1:~:infxcdev:3515>nohup ontape -c &
[1] 10303
informix@sf-cdev-db1:~:infxcdev:3516>Sending output to nohup.out


[1]+ Stopped nohup ontape -c
=========================================
I also looked at the process using ps -ef |grep ontape It showed nothing.I have gone through many documents and all they say is that you can automate ontape -c only through script.If you have any such script or you know any site,Please let me know.

Thanks a lot,
IP
 
ipswalia,

Have you tried to add this line into a simple script i.e.:

#!/bin/ksh
ontape -c

Then add the startup of this to the informix crontab:

crontab -e

This should then work.

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
My usual method is to get at to do it for me:

#print "ontape -c" | at now

However I do not use your utility so mileage may vary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top