Re: Need help: perl script to FTP

From: FLOTServer (flot)
Date: 08/26/04

  • Next message: Ken Chesak: "reg exp"
    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
    

  • Next message: Ken Chesak: "reg exp"

    Relevant Pages

    • Re: Need help: perl script to FTP
      ... > use strict; ... > The &sendsubroutine doesn't exist in your script. ... I do have permission to get the file and it is there. ... but not with the perl script. ...
      (perl.beginners)
    • Re: IIS default web site asp page permission problem
      ... that sounds like an administrator kind of a thing to do. ... authentication is anonymous or if you are authenticating as a user who is ... Permission Denied Error on Local Default Web Page ... Every other subroutine in the file works just fine. ...
      (microsoft.public.inetserver.iis)
    • Re: IIS default web site asp page permission problem
      ... get the list of default documents for this Web site. ... Permission Denied Error on Local Default Web Page ... Set oDefSite = GetObject ... Somehow I do not have permission using the GetObjectsubroutine. ...
      (microsoft.public.inetserver.iis)
    • Re: mysterious line in my script - what does it all mean?
      ... send the recipient's address as a with a BCC: ... You don't have permission to access /cgi-bin/mailer.pl on this ... Once again this is not to defend to my Perl script, ... but the web server. ...
      (comp.lang.perl.misc)
    • Re: trying to create a network script:
      ... > Ben Morrow wrote: ... >> Do you have permission? ... >> the perl script is running as? ... > can't open computername ...
      (comp.lang.perl.misc)