home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10727 < prev    next >
Encoding:
Text File  |  1992-09-04  |  1.6 KB  |  38 lines

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