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

Using exec() for executing shell scripts in CGI

by stumbler (Acolyte)
on Dec 13, 2006 at 23:18 UTC ( [id://589693]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    die "Can't fork: $!" unless defined $pid = open(KID, "-|");
    if ($pid) {           # parent
    ...
        exec 'myprog', 'arg1', 'arg2' 
            or die "can't exec myprog: $!";
    }
    
  2. or download this
    Shell Script:
    
    ...
    
    echo "Exit"
    
  3. or download this
    ...
    ...
    ...
    exec 'unixscript.sh', $dir, $exe
    ...
    ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found