Re: ontape in cron
Posted in 1999
Topics: Backup & Restore
You'll need to script around it, redirecting stdin/stout. Messy but it works. Alternatively, if you trust your operator to chnages tapes, why not let them run the job from command line?
Paul Watson
WF Software Ltd
Tel: +44 1436 674729
Fax: +44 1436 678729
www.wfsoftware.com/informix
# If you broke it, hide the evidence
>>> <gmurad@unimedsp.com.br> 08/27/99 04:13PM >>>
I would like to run archive in cron, using the following script :
echo "Backup Started "`date`>$LOGFILE
echo "\\n0" | ontape -s -L 0 >>$LOGFILE 2>&1
if [ $? -ne 0 ]
then
echo "Backup Failed "`date`>>$LOGFILE
else
echo "Backup Completed "`date`>>$LOGFILE
fi
The point is: my full archive requires two tapes; so how can i tell this
background process to
continue (it asks for an enter to switch tapes) when the operator put the
other tape manually into the Unit? Is there a signal i could send to the
process PID?
TIA,
Gustavo
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************