home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11089 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!rexago8!aa
  3. From: aa@rexago8.uucp (Adam Andrews)
  4. Subject: Re: IF ONLY...
  5. Message-ID: <1992Sep15.142109.27179@rexago8.uucp>
  6. Organization: Summit Information Systems
  7. References: <1992Sep14.202442.28122@rsg1.er.usgs.gov>
  8. Distribution: usa
  9. Date: Tue, 15 Sep 1992 14:21:09 GMT
  10. Lines: 24
  11.  
  12. mfugazzo@resdgs1.er.usgs.gov (Mark Fugazzotto) writes:
  13. >  If only I could get the output from a script that
  14. >is executed by cron to display on the terminal! 
  15. >
  16. > there is a line in the script that reads:
  17. >  
  18. >     echo "bla bla bla bla"
  19.  
  20. > I'm on a Data General AViiON 300 workstation, running DGUX 5.4.1
  21.  
  22. I'm not sure how this would differ on your machine, but what I've done
  23. on ours (3B2 w/ SVR3) is go to the cron file which calls your script, and
  24. in that line redirect the output of the script to /dev/console, or whatever
  25. port you would use.
  26.  
  27. e.g.:
  28. 00 12 * * * /usr/local/script 2>&1 >/dev/console
  29.  
  30. alternatively, you could redirect the output of your 'echo' statement.
  31.  
  32. Just a suggestion...
  33. -- 
  34. Adam Andrews                "When the going gets weird, we get even weirder."
  35. uunet!rexago8!aa or aa@rexago8.UUCP       e-mail only to aa@summitis.com
  36.