Re: scipt to cron for tbtape
Posted in 1995
Andreas Zeugswetter — — source: Informix-list mailing list archive (1991-1998)
You can use the following script, which is strongly disrecomended by Informix, but they don't distribute better Ideas: #!/bin/ksh # the profile has to be set since cron does not run .profile /usr/informix/.profile # for instance echo '2\\n\\n' | tbtape -s >tbtape.log 2>&1 grep '100 percent completed.' tbtape.log if [ $? -ne 0 ] ; then cat tbtape.log | mail -s 'tbtape level 2 FAILED !!' informix fi Then in the morning be sure to check the output in ontape.log or the mail so long Andreas Zeugswetter