Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Error code 15360 on close filehandle

by perlnew1611 (Initiate)
on Nov 28, 2011 at 21:09 UTC ( [id://940469]=note: print w/replies, xml ) Need Help??


in reply to Re: Error code 15360 on close filehandle
in thread Error code 15360 on close filehandle

Hello ikegami,

Thanks for the reply.. I am new to perl...so need some clarification...so do you mean to say that the "$test" program in "open(TH, "|$test >$tmpfn" )" is returning the error code? and it is not a standard error code due to some problem with call that it is failing.

In the documentation it is written that when using piped open, the open might suceeded..but that does not mean that the command in the open succeeded, it only means the fork succeeded, so I also verified using ps -ef and the command is getting executed.

Due to this the outfile $tmpfn is also empty

thanks
  • Comment on Re^2: Error code 15360 on close filehandle

Replies are listed 'Best First'.
Re^3: Error code 15360 on close filehandle
by ikegami (Patriarch) on Nov 29, 2011 at 04:12 UTC

    so do you mean to say that the "$test" program in "open(TH, "|$test >$tmpfn" )" is returning the error code?

    The error comes from the child via the waitpid done by close.

    It could from an error that occurred while trying to launch a shell to execute that command produced by "$test >$tmpfn". (Hopefully this isn't possible on your system.)

    Otherwise, it's the error code of the launched shell. The shell will use something based on the error code of the last program it launched as its exit code.

    and it is not a standard error code due to some problem with call that it is failing.

    There is no standard for exit codes except for zero: success, non-zero: error. That's why the meaning of 60 is a guess.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-16 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found