Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Running a Shell Program from CGI page

by NetWallah (Canon)
on Oct 30, 2015 at 17:29 UTC ( [id://1146512]=note: print w/replies, xml ) Need Help??


in reply to Running a Shell Program from CGI page

You should also check the exit status of the external command run. You can get that by querying:
if (my $exitstatus=($?>> 8 ) == 0){ # All is well }else{ die "ERROR: Returned $exitstatus from shell"; }
See "$CHILD_ERROR or $?" in perlvar.

        The best defense against logic is ignorance.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found