Hi. Got a bit of a weird error message being returned by Net::FTP when trying to log in.
Code is;
if ($remote_ftp) {
print "\n\nFTP'ing to $url...\n\n";
use Net::FTP;
my $_ftp = Net::FTP->new($url, Debug => 1) or &error("Cant FTP. Reason: $!");
$_ftp->login("$user","$pass");
if ($cwd_to) {
$_ftp->cwd($cwd_to);
}
if ($dateorname eq "name") {
$_ftp->put("mysqlbackup.sql.gz");
} else {
$_ftp->put("$date.sql.gz");
}
$_ftp->quit or &error("FTP Upload failed!");
}
...shows;
I've even tried hard coding int he URL/user/pass, but I still get this weird error.
Anyone got any ideas? I'm stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code is;
Code:
# if they want FTP stuff, then transfer it to the FTP site... if ($remote_ftp) {
print "\n\nFTP'ing to $url...\n\n";
use Net::FTP;
my $_ftp = Net::FTP->new($url, Debug => 1) or &error("Cant FTP. Reason: $!");
$_ftp->login("$user","$pass");
if ($cwd_to) {
$_ftp->cwd($cwd_to);
}
if ($dateorname eq "name") {
$_ftp->put("mysqlbackup.sql.gz");
} else {
$_ftp->put("$date.sql.gz");
}
$_ftp->quit or &error("FTP Upload failed!");
}
...shows;
Quote:
Error: Cant FTP. Reason: No such file or directoryI've even tried hard coding int he URL/user/pass, but I still get this weird error.
Anyone got any ideas? I'm stumped
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!