RE: return codes

2004-08-26 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : All, : : I have a foreach statement that is going through a file and : looking for all line w/out *Orig and what I want to do is if : its return code was 0 then print out a short message, but I do : not want to print out this short message more than

return codes

2004-08-26 Thread DBSMITH
All, I have a foreach statement that is going through a file and looking for all line w/out *Orig and what I want to do is if its return code was 0 then print out a short message, but I do not want to print out this short message more than n +1 times. Any ideas? Here is my code: foreach (s

RE: system() error return codes

2002-07-23 Thread Bob Showalter
> -Original Message- > From: Bob Green [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 23, 2002 9:11 AM > To: [EMAIL PROTECTED] > Subject: system() error return codes > > > I need to execute DOS level commands from perl and I must be > able to test >

system() error return codes

2002-07-23 Thread Bob Green
I need to execute DOS level commands from perl and I must be able to test for success. I've found the system() function and it seems to work except I'm having problems getting the correct error return back. To test the error return I've created this very simple code. In it I try everything I kno

Re: How can I set return codes for a perl-script?

2001-06-27 Thread Me
> I want a perl-script to be startet by another application. Is there a > possibility to send a return code from the perl-script to the application > saying whether the perl-script was running properly? Is this working for > Unix and NT? use exit, eg exit 2;

How can I set return codes for a perl-script?

2001-06-27 Thread Roland Schoenbaechler
I want a perl-script to be startet by another application. Is there a possibility to send a return code from the perl-script to the application saying whether the perl-script was running properly? Is this working for Unix and NT? Thanks a lot Roland *** PLEASE NOTE