Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ig!ames!dftsrv!tomc From: tomc@dftsrv.gsfc.nasa.gov (Tom Corsetti) Newsgroups: comp.unix.wizards Subject: invoking write from cron Keywords: can it be done? Message-ID: <175@dftsrv.gsfc.nasa.gov> Date: 21 Apr 89 12:58:31 GMT Distribution: usa Organization: Advanced Data Flow Technology Office Lines: 16 Hi, I'm trying to set up a script that runs from cron, checks files and sends me a message when certain files change in size. I have the following code in the script that sends the message: echo "message to send" | write userid When I invoke the script interactively, it works. When run from cron, I get no message. Is this because the write command also sends userid and ttyxx device along with the message? Since processes invoked from cron have no tty associated with them, could this be the problem? Any suggestions are welcome! Thanks in advance! - Tom -- Tom Corsetti * * * * internet - tomc@dftsrv.gsfc.nasa.gov NASA/Goddard Space Flt Ctr * * * decnet - dftnic::tomc Greenbelt Maryland * * * * bitnet - tomc at dftbit