On 6/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Howdy,

Please be gentle, I'm a perl novice to say the least.
snip
When I run it (./scripts/bk.pl dbname) it runs the first exec
properly, but it dose not do the second.  I get the error
(Maybe you meant system() when you said exec()?)

Any ideas as to why this is happening?
snip

perldoc -f exec
perldoc -f system

Basically, exec replaces the current process with the one you specify
and system runs the process, waits until it is finished, and then
starts the original process again.  You almost always want system
rather than exec unless you are fork'ing.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to