Re: [REQ] Questions on ftp program?

From: Barry L. Kline (blkline_at_attglobal.net)
Date: 02/16/04

  • Next message: Infotech: "Re: Sendmail error"
    To: redhat-list@redhat.com
    Date: Mon, 16 Feb 2004 08:50:14 -0500
    
    

    On Monday 16 February 2004 08:01 am, Zhuanshi He wrote:
    > Dear All,
    >
    > I wrote a script (listed below, ftp.sh) try to do ftp automatically. I
    > have four more questions need your help.
    >
    > (a). How can I judge if the file will be downloaded already exists in my
    > local directory. Which command I should add to ftp.sh
    > (b). May I add more machine to file ~/.netrc
    > (c). May I use same ftp.sh to do the "mput" command?
    > (d). If the user is not anonymous, how can I change the ftp.sh?
    >
    > Thank u so much for giving me hints.
    > It's very appreciated, if u can provide sampling script(s).
    >
    > Warm regards,
    >
    > Z. He
    >
    > ftp.sh

    The only problem doing it this way is that you have very little flexibility...
    if the FTP server does something for which your script is unprepared then it
    will fail or hang. You might be better off looking at "expect". See:

    http://www.mcpressonline.com/mc?50@1.W6rVbsyvox3.1@.6ae5da73

    Barry

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Infotech: "Re: Sendmail error"

    Relevant Pages

    • Failed to initialize all required WMI classes
      ... I tried to google for some hints to resolve this problem, ... I attach this tiny script I wanted to ... Set objWMIService = GetObject("winmgmts:" & ...
      (microsoft.public.windowsxp.wmi)
    • Solved: Sarge: sieveshell localhost Not working
      ... > Would really appreciate some hints and tips on this issue. ... Hej, ... "telnet localhost 2000" reported "SASL PLAIN" and everything worked fine! ... delete - delete script. ...
      (Debian-User)
    • Re: Kylie flippin Minogue ? [OT]
      ... Kylie Monologue [On Tardis]? ... Given the right script, she can be ... a reasonable performer. ... I'm more concerned about hints that the ...
      (uk.comp.sys.mac)
    • Re: foreach statement output
      ... The following script was written and run on a Unix machine: ... Hints: ... A foreach loop iterates over the elements of a list, ...
      (comp.infosystems.www.authoring.cgi)
    • Re: awks NF in Perl
      ... > I want to have the awk NF variable in Perl. ... > hints for that. ... > so it looks good, now I change the script a little bit, look here: ...
      (comp.lang.perl)