home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!rsg1.er.usgs.gov!resdgs1.er.usgs.gov!mfugazzo
- From: mfugazzo@resdgs1.er.usgs.gov (Mark Fugazzotto)
- Subject: help with script
- Message-ID: <1992Sep4.140311.27857@rsg1.er.usgs.gov>
- Originator: mfugazzo@resdgs1.er.usgs.gov
- Sender: news@rsg1.er.usgs.gov
- Organization: United States Geological Survey
- Distribution: usa
- Date: Fri, 4 Sep 1992 14:03:11 GMT
- Lines: 25
-
- A while ago I had asked for help with posting the
- motd on the server to all remote workstations. I got
- a big response back. Thanks to everyone that responded.
- Some suggetions were to use rdist(unsupported on this
- version of Unix), use rcp (would have worked but a
- security hazard to make root equivilent on from the
- server to all workstations). The one I went with was
- a script on the server to ftp via anonymous the motd
- to all workstations. then have a cron job on each
- workstation copy the motd into the etc directory.
- This works well except for one flaw with cron I can't
- seem to overcome. Cron simply executes a script on each
- workstation at the specified times, and it does. Only it
- does not echo to the screen the line in the script which
- tells the user that an updated motd has arrived. Where is
- this output being sent to? If I execute the script manually
- it works fine. What can I do to get cron to echo the line to
- the screen?
- Also while I'm here, Is there something I can put into my
- script that will check first for a logon, if one is found then
- echo to the screen, if one is not found, do nothing??
-
- thanks in advance
-
- Mark...
-