edwin@sclcig.UUCP (Edwin Allum) (01/16/90)
HELP HELP, How can I abort the following command when cpio fails and prompts for input: find . -print | cpio -ocB > /dev/rct0 That is, if there is insufficent tape, the above cpio command prompts for the device/filename to continue. If I can send a return it will then abort. Note, this command runs in a shell script as a cronjob. Edwin
bdb@becker.UUCP (Bruce Becker) (01/17/90)
In article <9001152048.AA02433@sclcig.UUCP> edwin@sclcig.UUCP (Edwin Allum) writes: | |HELP HELP, |How can I abort the following command when cpio fails and prompts for input: | |find . -print | cpio -ocB > /dev/rct0 | | |That is, if there is insufficent tape, the above cpio command prompts for |the device/filename to continue. If I can send a return it will then abort. |Note, this command runs in a shell script as a cronjob. You can try this - make a file named, say, "/usr/local/lib/cr.in" which has a few blank lines in it. find . -print | cpio -ocB > /dev/rct0 < /usr/local/lib/cr.in If cpio goes looking for input it should read this file and read a blank line from it. Cheers, -- ,,,, Bruce Becker Toronto, Ont. w \$$/ Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu `/c/-e BitNet: BECKER@HUMBER.BITNET _/ >_ "Money is the root of all money" - Adam