![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: running a script from perlby trantor (Chaplain) |
on Nov 13, 2001 at 18:03 UTC ( #125043=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|