×
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

    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.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.