gouldopfl has asked for the wisdom of the Perl Monks concerning the following question:
I have a ksh script on Sun Solaris. We are running 5.10.0 of Perl. I have no control over this. The ksh script calls a perl program which recursively goes through a series of directories to get all of the data that has not been posted. I did not write this nor have I had a lot of experience with perl as that is not our main programming language here. The way the program is written is if the login fails it still returns a 0 error code even with a die statement, or at least the ksh script thinks it does and continues. I need to be able to have the perl program send a 0 or 1 to the ksh script to know whether to continue or not. Any idea's or examples would be greatly appreciated.
Best Regards
Michael Gould
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl program return error code to ksh
by Corion (Patriarch) on Jun 24, 2014 at 11:20 UTC | |
Re: perl program return error code to ksh
by salva (Canon) on Jun 24, 2014 at 11:20 UTC | |
Re: perl program return error code to ksh
by blue_cowdawg (Monsignor) on Jun 24, 2014 at 14:20 UTC | |
by Anonymous Monk on Jun 24, 2014 at 18:37 UTC | |
by blue_cowdawg (Monsignor) on Jun 24, 2014 at 18:42 UTC | |
by RonW (Parson) on Jun 25, 2014 at 15:47 UTC |
Back to
Seekers of Perl Wisdom