Think about Loose Coupling | |
PerlMonks |
Re^3: Capturing FTP outputby starbolin (Hermit) |
on May 15, 2008 at 21:45 UTC ( [id://686817]=note: print w/replies, xml ) | Need Help?? |
Your script as posted contains won't compile as it contains syntax errors. Your big problem, however, is that ftp, when not in interactive mode, doesn't write to anything to stdout. You won't know if anything goes wrong. Ftp will just exit without saying anything. So you'll need to check your files to see if the transfer actually took place. Your script worked for me after commenting out a line with a syntax error.
Caveat: tested on FreeBSD. s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}
In Section
Seekers of Perl Wisdom
|
|