×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Ftp-automation: Difference between revisions

    Content added Content deleted
    imported>Hundfred
    No edit summary
     
    imported>mutante
    mNo edit summary
     
    Line 1: Line 1:
    if you want '''automatically upload files via FTP''' with a bash-script and if you don't like the [[.netrc_ftp-method]] you can do it like this:
    if you want '''automatically upload files via [[FTP]]''' with a [[bash]]-script and if you don't like the [[.netrc_ftp-method]] you can do it like this:
    <pre>
    <pre>
    #!/bin/bash
    #!/bin/bash
    Line 14: Line 14:
    EOFTP
    EOFTP
    </pre>
    </pre>

    [[Category:Computer]]
    [[Category:Software]]
    [[Category:Networking]]
    [[Category:Linux]]

    Latest revision as of 08:52, 19 August 2005

    if you want automatically upload files via FTP with a bash-script and if you don't like the .netrc_ftp-method you can do it like this:

    #!/bin/bash
      # autoftp.sh
      lokal_file=/<path>/<to>/<local>/<file>
      remote_file=<path>/<and>/<name>/<of>/<the>/<destination-file>
      # ... /tmp/test1 erzeugen
      ftp -n <<EOFTP
        open <ftp-server>
        user <username> <password>
        bin
        put $lokal_file $remote_file
        quit
      EOFTP
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • BruderSpektrum • 13 hours ago
  • BruderSpektrum • 17 hours ago
  • BruderSpektrum • 17 hours ago
  • BruderSpektrum • 17 hours ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.