Re: Am I running from cron?

From: Saxon, Lamar (Lamar.Saxon@AMERICREDIT.COM)
Date: Thu Dec 19 2002 - 15:14:19 EST


Look for the parent process ID within the script and see if it is cron's pid
like with a ps -ef | grep $$ | grep -v grep ?

Lamar

-----Original Message-----
From: Taylor, David [mailto:DTaylor@WBMI.COM]
Sent: Thursday, December 19, 2002 1:53 PM
To: aix-l@Princeton.EDU
Subject: Am I running from cron?

Is there anyway from within a script to determine if it is being run from
cron?

TIA

David

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:25 EDT