Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: frank@morgan.com (Frank Wortner)
Newsgroups: comp.sys.sun
Subject: Re: Shutting down a Sun System with a Shell Script
Message-ID: <139@hudson.Morgan.COM>
Date: 4 Dec 88 03:44:52 GMT
References: <8811102135.AA09427@rice.edu>
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 16
Approved: Sun-Spots@rice.edu
Original-Date: 23 Nov 88 14:55:55 GMT
X-Sun-Spots-Digest: Volume 7, Issue 37, message 5 of 12

In article <8811102135.AA09427@rice.edu> Sun-Spots@Rice.edu writes:
)X-Sun-Spots-Digest: Volume 7, Issue 21, message 7 of 12
)
)Is there anyway to perform the following steps in a shell script from
)crontab on a Sun 3/280s file server:

One way to do it is to make an empty file (let's call it /.do-a-dump), and
then bring the system to single user.  Root's .profile then checks for the
existence of /.do-a-dump.  If it exists, the .profile runs the desired
program.  A /etc/reboot brings everyone back to snuff.

I used to do incremental backups this way on Suns and an Alliant, so I'm
reasonably confident ;-) that it works.

-- 
						Frank