From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16698 invoked from network); 18 Dec 1997 21:03:11 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 18 Dec 1997 21:03:11 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id PAA09999; Thu, 18 Dec 1997 15:30:40 -0500 (EST) Resent-Date: Thu, 18 Dec 1997 15:29:57 -0500 (EST) To: zsh-users@math.gatech.edu Subject: interactive vs cron called Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Jason Zapman II Date: 18 Dec 1997 15:30:51 -0500 Message-ID: X-Mailer: Gnus v5.4.37/XEmacs 19.15 Resent-Message-ID: <"cTp5t2.0.bR2.5VOcq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1206 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Is there a way to tell if a script is being called by cron or via interactive script? I'm writing something to tell me when disk usage of various partitions get's to dangerous levels. When it's run via cron, I want it to mail me the results. If it's interactive, I want it to print the output to the screen. Any ideas? Thanks; Jason -- Jason Price | If you want to build a ship, don't drum up people Theta Xi, | together to collect wood and don't assign them tasks Beta, Alpha 449 | and work, but rather teach them to long for the endless jprice@poboxes.com | immensity of the sea. -- Antoine de Saint Exupery