Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: running a script from perl

by trantor (Chaplain)
on Nov 13, 2001 at 18:03 UTC ( [id://125043]=note: print w/replies, xml ) Need Help??


in reply to running a script from perl

You probably want to use system, not exec.

As you can read from perldoc perlfunc, exec never returns: the current process is replaced by the new one. This will cause your original guestbook CGI script to terminate abnormally without completing its task.

Another comment about file.sql: is it an actual executable (shell, perl, binary, whatever) or a file containing SQL statements only? In the latter case, you most probably need to run an SQL processor passing that file name.

-- TMTOWTDI

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-19 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found