Re: [REQ] Questions on ftp program?

From: Nabin Limbu (nlimbu_at_healthnet.org.np)
Date: 02/16/04

  • Next message: Peter Fleck: "Re: Logging sftp file transfers"
    To: redhat-list@redhat.com
    Date: Mon, 16 Feb 2004 20:11:36 +0530
    
    

    Hi,
    You might find "wget" command interesting. Pls check it out.

    For shell scripting, have a look on this pages.
    http://www.tldp.org/LDP/abs/html/
    or
    http://www.freeos.com/guides/lsst/index.html

    Nabin Limbu
    HealthNet Nepal

    On 16 Feb 2004 at 22:01, 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
    --------------------------------------------------------------
    ftp airquality << EOF

    cd /pub/upload
    mget *.txt
    bye

    --------------------------------------------------------------

    I also have a file, ~/.netrc
    --------------------------------------------------------------
    machine airquality.kjist.ac.kr login anonymous password guest
    --------------------------------------------------------------

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

  • Next message: Peter Fleck: "Re: Logging sftp file transfers"

    Relevant Pages

    • Re: [Info-ingres] Need help Appending an extra footer line after using COPY .. INTO output_file,
      ... command, as that's the only thing after the 'cat' command line. ... David G. Brooks ... (shell scripting, declarations, etc.) ... Have both queries write to seperate files then append them at the OS ...
      (comp.databases.ingres)
    • Re: whitespace problem " " != " "
      ... it's precisely the same way at the command line. ... I've even taught shell programming class using those six pages as ... presenting a one day crash course in shell scripting. ...
      (comp.unix.shell)
    • Re: Search query
      ... On Mon, 31 Aug 2009, in the Usenet newsgroup linux.redhat, in article ... Create a simple command invoked by NAME which runs COMMANDS. ... This document is both a tutorial and a reference on shell scripting ... I'd expect this 'ps | grep' output to vary based on the process you're ...
      (linux.redhat)
    • Re: Shell Scripting is as lame as VB.
      ... shell scripting is generally for on the fly programming or ... It's only suited for a limited range of tasks. ... I type a Bash program directly in at the command prompt without ... ]functionality from the command line. ...
      (comp.os.linux.misc)
    • Re: Shell Scripting is as lame as VB.
      ... shell scripting is generally for on the fly programming or ... It's only suited for a limited range of tasks. ... I type a Bash program directly in at the command prompt without ... ]functionality from the command line. ...
      (comp.os.linux.development.apps)