I know it sounds a bit like black magic, but: I would (just for debugging purpose) create a temporary BAT file, write the ftpscrpt command into this file, and then execute the BAT file via system. The outcome should be the same. If you still get the error, does the error also occur when you call the batch file from the command line? If it does, it should be now trivial to track down; otherwise, it might be worth checking the environment (including COMSPEC).
BTW, how is the effect if you simply do
from the command line?perl -we "system(qq(ftpscrpt ...))"
In reply to Re: Why can't I give system the same command I've been giving to exec?
by rovf
in thread [Have solution now but am still puzzled] Why can't I give system the same command I've been giving to exec?
by Narveson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |