in reply to Net::FTP only working occasionally.
First, I wouldn't kill postfix's processes if I were you.
Second, this code will never run as is. Too many compilation errors. Are you sure that this is the code you are running?
Add my's to each of the variable declarations, then remove the final ) from the $address declaration line. Speaking of which, what is the point of using $address here at all, when you can use $site?
$ftp->cwd('./main.html'); is all wrong unless you have a directory called main.html.
$ftp->type('binary'); can be rewritten as $ftp->binary(); since they are synonomous.
Update: You might want to check for the existance of '/home/wolfger/Shared/Documents/wolfger/howllog.html' before trying to upload it.
sometime later: /me shrugs
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Net::FTP only working occasionally.
by wolfger (Deacon) on Mar 31, 2003 at 18:29 UTC | |
by michaeld (Monk) on Apr 01, 2003 at 18:53 UTC |