Re: Test how we were executed

2002-05-17 Thread drieux
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

RE: Test how we were executed

2002-05-17 Thread Shishir K. Singh
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

RE: Test how we were executed

2002-05-17 Thread Postman Pat
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]

RE: Test how we were executed

2002-05-17 Thread Jackson, Harry
> -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 &

RE: Test how we were executed

2002-05-17 Thread Bob Showalter
> -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

Re: Test how we were executed

2002-05-17 Thread drieux
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 >

Test how we were executed

2002-05-16 Thread Postman Pat
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