Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: running a script from perl

by trantor (Chaplain)
on Nov 13, 2001 at 18:03 UTC ( #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 pondering the Monastery: (3)
As of 2023-12-10 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (39 votes). Check out past polls.

    Notices?