From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078618110498.tru64-unix-managers.marc@archive.invalid> From: Richard Rogers Date: Thu, 16 Oct 1997 12:59:07 +0000 To: tru64-unix-managers Subject: SUMMARY: giving keyboard input to a process started under cron X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078618110498 Original query: > We normally run our backups nightly under cron. However, for systems > with sufficient disk to require a second tape, there is a problem > with this, as dump/vdump want confirmation from the keyboard when the > second tape is loaded. Is there a way to provide such input to a > process started under cron? Thanks to everyone who responded. It became evident that I should have provided one more crucial bit of information, namely that we are not using a tape stacker of any kind, so operator intervention is required to change the tape. The position in this case was summed up by alan@nabeth.cxo.dec.com, who wrote I don't think you can get what you want if you're using an operator to change tapes. If you have a random access or sequential media changer you may be able to use expect to read the prompts and then offer the desired response. I think expect is part of the Tk/Tcl kit. For sequential media changers an "mt offline" command is enough to get a tape change. For random access libraries and loaders, you may want to look at the Media Robot Utility. So it looks as though we're stuck with it, for the moment at least. Thanks again Richard ----------------------------------- Richard Rogers Information Technology Services Staffordshire University Tel: 01785 (+44 1785) 353395 E-mail: R.M.Rogers@staffs.ac.uk