Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!hplsla!hpubvwa!grlab!scott From: scott@grlab.UUCP (Scott Blachowicz) Newsgroups: comp.unix.wizards Subject: Re: invoking write from cron $W could not be reached Message-ID: <490002@grlab.UUCP> Date: 1 May 89 17:27:17 GMT References: <175@dftsrv.gsfc.nasa.gov> Organization: Graphicus Lines: 29 Another thing that can work depending on what you're trying to accomplish is to use the wall program. I don't know what versions of UN*X this is supported on, but on ours (HP-UX), you can specify a group name to receive a broadcast message. I've got a script setup that checks for available free space on different file systems. If it gets below a threshold value for that file system a message is sent to the group 'sys'. I just add the regular logins for the people able to check for and reclaim disc space to the 'sys' group. The script looks like this: #! /bin/sh if [ -z "$1" ] then tolerance=20000 else tolerance=$1 shift fi df_output=`df $* | sed 's/[()]/ /g' | awk '{if ($4 <= '$tolerance') {print}}'` if [ ! -z "$df_output" ] then ( uname -a ; echo "$df_output" ) | /etc/wall -g sys ( uname -a ; echo "$df_output" ) | remsh other_sys "/etc/wall -g sys" fi --- Scott Blachowicz USPS: Graphicus UUCP: ...!hpubvwa!grlab!scott 150 Lake Str S, #206 VoicePh: 206/828-4691 Kirkland, WA 98033 FAX: 206/828-4236