zsh-users
 help / color / mirror / code / Atom feed
From: Frank Li <fli@aus140.austin.dsccc.com>
To: Jason Zapman II <zapman@cc.gatech.edu>
Cc: zsh-users@math.gatech.edu
Subject: Re: interactive vs cron called
Date: Thu, 18 Dec 1997 15:11:47 -0600 (CST)	[thread overview]
Message-ID: <Pine.GSO.3.95.971218151057.23526A-100000@aus140.austin.dsccc.com> (raw)
In-Reply-To: <hvgu3c6jsw4.fsf@vinnie.cc.gatech.edu>

On 18 Dec 1997, Jason Zapman II wrote:

> 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?
> 

actually, just have the program output to the screen since crontab will
automatically E-mail any stdout of the program to you anyway. Try it. 

--------------------------------------------------------------------------
Frank Li				Assistant System Admin (Finally !)
E-mail(work)  fli@austin.dsccc.com
E-mail(personal) prefect@ccwf.cc.utexas.edu
What I say is what I think, and no one else's (including the company)
--------------------------------------------------------------------------


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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-18 20:30 Jason Zapman II
1997-12-18 21:11 ` Frank Li [this message]
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=Pine.GSO.3.95.971218151057.23526A-100000@aus140.austin.dsccc.com \
    --to=fli@aus140.austin.dsccc.com \
    --cc=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).