zsh-users
 help / color / mirror / code / Atom feed
* interactive vs cron called
@ 1997-12-18 20:30 Jason Zapman II
  1997-12-18 21:11 ` Frank Li
  1997-12-18 21:47 ` Jason Zapman II
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Zapman II @ 1997-12-18 20:30 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-12-19  3:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-18 20:30 interactive vs cron called Jason Zapman II
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

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).