zsh-users
 help / color / mirror / code / Atom feed
From: Jason Zapman II <zapman@cc.gatech.edu>
To: zsh-users@math.gatech.edu
Subject: interactive vs cron called
Date: 18 Dec 1997 15:30:51 -0500	[thread overview]
Message-ID: <hvgu3c6jsw4.fsf@vinnie.cc.gatech.edu> (raw)

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


             reply	other threads:[~1997-12-18 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-18 20:30 Jason Zapman II [this message]
1997-12-18 21:11 ` Frank Li
1997-12-18 21:47 ` Jason Zapman II
1997-12-19  1:44   ` Danek Duvall
1997-12-19  2:34     ` Manual removal ramos
1997-12-18 21:05 interactive vs cron called Sweth Chandramouli
1997-12-19  9:14 John Riddoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hvgu3c6jsw4.fsf@vinnie.cc.gatech.edu \
    --to=zapman@cc.gatech.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).