Re: Unattended tbunload ??
Posted in 1995
Grant MacKinnon (gmackinn@PFIZER.COM) wrote: : Please tell me how I pipe the required response to the tbunload command when : run by cron. Use a "here" script like the following. Remember to also set the required environment variables (like INFORMIXDIR, TBCONFIG) and maybe include some mechanism to check that the tape drive is ready and maybe even that the correct tape is loaded (all these things not included here!): #!/bin/sh tbtape -s << ENDE 0 ENDE The emptly line above the "0" is important! It supplies the "RETURN" response to the "tape drive ready" question. The "0" is the archive level, you can also enter "1" or "2" as required. Hope this helps, Richard -- +----------------------------+-------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3421 | | Klinikum Grosshadern | FAX : +49-89-7095-8886 | | 81366 Munich, Germany | | +----------------------------+-------------------------------------------+