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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|