Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: CSH script that calls a perl script

by mark4444az (Sexton)
on Oct 16, 2012 at 22:19 UTC ( #999437=note: print w/replies, xml ) Need Help??

in reply to Re: CSH script that calls a perl script
in thread CSH script that calls a perl script

Both no's on your questions I'm afraid. Actually, if I could evaluate a return value as a 1 or 0 I think that would work. That way I could shut the action down from the csh. I'm not sure how exactly to accomplish that but I think that would get me through my current dilemma. I tried using perl only and I may not have time to do that. The main problem there is that it produces a log file from another exe and so far perl does not seem to be working for that.
  • Comment on Re^2: CSH script that calls a perl script

Replies are listed 'Best First'.
Re^3: CSH script that calls a perl script
by tobyink (Abbot) on Oct 17, 2012 at 07:09 UTC

    Would you be happy with your Perl script returning 0 for success and 255 for failure? If so, take note...

    $ perl -e'die'; echo "GOT $?" Died at -e line 1. GOT 255 $ perl -e'exit'; echo "GOT $?" GOT 0
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999437]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2019-04-20 05:02 GMT
Find Nodes?
    Voting Booth?
    I am most likely to install a new module from CPAN if:

    Results (108 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!