Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!david From: david@ukma.UUCP (David Herron, NPR Lover) Newsgroups: net.sources.bugs Subject: Re: Overnight backups - autodump Message-ID: <1726@ukma.UUCP> Date: Mon, 6-May-85 12:00:41 EDT Article-I.D.: ukma.1726 Posted: Mon May 6 12:00:41 1985 Date-Received: Wed, 8-May-85 03:07:35 EDT References: <237@stc-a.stc.UUCP> Organization: U of Kentucky, Mathematical Sciences, Lexington KY Lines: 37 Summary: Why have it compete with getty? In article <237@stc-a.stc.UUCP>, shimell@stc.UUCP (Dave Shimell) writes: > - If the dumps require more than a single tape, the > last dump must be aborted and manually restarted. > (I guess the script could keep track of the amount > of tape used in previous dump run.) As the script > is reading /dev/console, you have to compete with > getty to talk to dump. > I have a similar set of shell scripts (which I like better). But I had this same problem with competing with getty. So I fixed init so it would keep the console logged in. (Actually....it was ANY line who's /etc/ttys entry had 'c' in the first column) So now It doesn't compete with getty, any time I need to do something quick, I've got a terminal already logged in, etc. (We can only do this here because the machine is kept locked with limited access.) Ok, I'll offer a set of diffs to anybody wanting them. Please note that this is for 4.2BSD, on a 11/750. Oh, how do I run the backup program? Simple. I wrote a quickie that would use that ioctl() that forced characters into a terminal's input buffer. This one takes the text from the command line. So my crontab entry looks like: 30 04 * * 1 force /dev/console "cd /backup; daily 2" (The '2' is the dump level to use.) -- --- David Herron --- ARPA-> ukma!david<@ANL-MCS> or david%ukma.uucp@anl-mcs.arpa --- Or even anlams!ukma!david@ucbvax.arpa --- UUCP-> {ucbvax,unmvax,boulder,oddjob}!anlams!ukma!david --- cbosgd!ukma!david "The home of poly-unsaturated thinking".