From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221573.tru64-unix-managers.marc@archive.invalid> From: "MacDonell, Dennis" Date: Tue, 04 Dec 2001 07:29:58 +0000 To: tru64-unix-managers Subject: Expect scripts, especially an expect backup script. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221573 Hi, I'm trying to write an expect script to control an autochanger tape device. At the moment I have have a script that can change the tapes. I also have a script that will backup some stuff to a tape. However at the moment I have not been able to marry the 2 scripts together to enable me to load another tape when vdump hits the end-of-tape marker. Theoretically it should have worked, but for some reason the "Change Tapes" string was not detected, and the process seemed to want to continue processing to the same tape. I thought if I could get some real live examples of expect scripts, I might be able to sort out what is going wrong. Here are the messages that were captured by the log file: vdump: Change Tapes: Mount tape# 0002 vdump: can't open device file ; not ready There is something basically wrong with these messages - (a) I would of thought vdump should have put out a message of the form Press return when the next tape is loaded. instead of reporting "can't open device file" (b) It would appear that vdump has tried to access the tape before waiting for the next tape to be loaded. Dennis ###################################### Dennis Macdonell Systems Administrator National Mapping Division, Geoscience Australia mail: PO Box 2, Belconnen, ACT 2617 email: mcdonell@auslig.gov.au ph: 61 2 6201 4326 fax: 61 2 6201 4377 ######################################