[X-Unix] Console in a Subshell?

Brian Medley bpm-list-osx-unix at 4321.tv
Thu Aug 16 15:32:33 PDT 2007


On Thu, Aug 16, 2007 at 12:05:40PM -0700, Jerry Krinock wrote:

You're capturing output.  If youw ant the return value do
something like:

    perlscript.pl arg1 arg2
    echo $?

>  I have an interactive (console) perl script I call from within an 
>  interactive bash script, like this:
> 
>  perlscript.pl arg1 arg2
> 
>  But when I try to get perlscript's return value by doing this
> 
>  result=`perlscript.pl arg1 arg2`
> 
>  perlscript no longer talks to the console, probably because it is talking to 
>  some subshell console somewhere.  Is there any way to redirect itt back to 
>  my shell's console?

-- 
Brian Medley


More information about the X-Unix mailing list