Content added Content deleted
imported>Hundfred No edit summary |
imported>mutante mNo edit summary |
||
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:
<pre>
#!/bin/bash
Line 14:
EOFTP
</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