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