Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!hybrid!becker!bdb From: bdb@becker.UUCP (Bruce Becker) Newsgroups: can.usrgroup Subject: Re: Cpio question Message-ID: <2306@becker.UUCP> Date: 17 Jan 90 04:05:37 GMT References: <9001152048.AA02433@sclcig.UUCP> Reply-To: bdb@becker.UUCP (Bruce Becker) Distribution: ont Organization: G. T. S., Toronto, Ontario Lines: 27 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