On Friday, May 17, 2002, at 08:02 , Postman Pat wrote:
> What I meant is test to see if we were run from an interactive shell, if
> so, print an error message.
assume
code_A calls Code_B
if code_A has not 'daemonized' and detached from
the controlling terminal - then the (-t STDIN) w
See Perl Cookbook Section 15.2. Should be of help.
-Original Message-
From: Postman Pat [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 11:02 AM
To: Bob Showalter
Cc: [EMAIL PROTECTED]
Subject: RE: Test how we were executed
What I meant is test to see if we were run from an
What I meant is test to see if we were run from an interactive shell, if
so, print an error message.
LK
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Postman Pat [mailto:[EMAIL PROTECTED]]
>
>
> Greetings,
> I want to write a script that will check to see if it was called from
> another script, if not it will display a message saying for
> instance this
> script is meant to be called from other script &
> -Original Message-
> From: Postman Pat [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 2:27 AM
> To: [EMAIL PROTECTED]
> Subject: Test how we were executed
>
>
> Greetings,
> I want to write a script that will check to see if it was called from
On Thursday, May 16, 2002, at 11:27 , Postman Pat wrote:
> Greetings,
> I want to write a script that will check to see if it was called from
> another script, if not it will display a message saying for instance this
> script is meant to be called from other script & not run interactively for
>
Greetings,
I want to write a script that will check to see if it was called from
another script, if not it will display a message saying for instance this
script is meant to be called from other script & not run interactively for
instance otherwise if called from a script will do it's intended