in reply to Re: Re: Re: Re: calling perl script from shell script
in thread calling perl script from shell script
In this example we treat the return code of "echo" which is always 0 of course. But ist will also work when you remove the echoing and execute the perlscript instead.#!/usr/bin/sh echo /usr/bin/perl perlscript.pl ret=$? echo "Status String is $?" if [ $ret -eq 0 ] then echo "case A" else echo "case B" fi echo going to exit shell with $ret exit $ret
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: calling perl script from shell script
by shilpam (Sexton) on Mar 29, 2004 at 08:28 UTC | |
by pelagic (Priest) on Mar 29, 2004 at 09:16 UTC | |
by shilpam (Sexton) on Mar 29, 2004 at 11:49 UTC |