Re: Need help: perl script to FTP
From: FLOTServer (flot)
Date: 08/26/04
- Previous message: Gunnar Hjalmarsson: "Re: URI::URL"
- In reply to: Chris Cole: "Re: Need help: perl script to FTP"
- Next in thread: Chris Cole: "Re: Need help: perl script to FTP"
- Reply: Chris Cole: "Re: Need help: perl script to FTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 11:37:19 -0400
"Chris Cole" <ithinkiam@gmail.com> wrote in message
news:pan.2004.08.26.09.58.02.334093@gmail.com...
> > #!/usr/bin/perl
>
> use warnings;
> use strict;
I assume I am just adding these 2 lines below the first line?
> > if ($ftp->login("$ftpusername","$ftppass")) { print "Username and
Password
> > ACCEPTED\n"; } else { print "could not log into server with Username and
> > Password. Exiting!\n"; &send("Transfer FAILED. Could NOT connect to
>
> The &send() subroutine doesn't exist in your script. Did you copy the
> script from somewhere? Also, '&' is unecessary, send("blah...") is
> sufficient.
Yeah, I did copy it from somewhere. I'm not sure I understand your first
comment... about the $send() subroutine not existing. Can you elaborate? I'm
sorry, but I'm a big time noob when it comes to this stuff.
> > Can not Transfer file
> > EXITING
> > Cannot retrieve. Failed. Aborting
>
> Have you checked whether the file you're looking for exists? Do you have
> write permission to your local directory?
Yes, I do have permission to get the file and it is there. I can download it
manually with Smart FTP, but not with the perl script.
-- Visit the .:|FLOT|:. Spearhead Server at 66.36.252.88! http://www.flotserver.net
- Previous message: Gunnar Hjalmarsson: "Re: URI::URL"
- In reply to: Chris Cole: "Re: Need help: perl script to FTP"
- Next in thread: Chris Cole: "Re: Need help: perl script to FTP"
- Reply: Chris Cole: "Re: Need help: perl script to FTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|