10 Einträge, 1 Seite |
Quoteich möchte ien shell-script schreiben
Quote#!/bin/sh
ftp host
user username password
send file1 file1
exit
QuoteFTP
Upload all data on stdin to a specified ftp site:
curl -T - ftp://ftp.upload.com/myfile
Upload data from a specified file, login with user and password:
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
Upload a local file to the remote site, and use the local file name remote too:
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/
Upload a local file to get appended to the remote file using ftp:
curl -T localfile -a ftp://ftp.upload.com/remotefile
Curl also supports ftp upload through a proxy, but only if the proxy is configured to allow that kind of tunneling. If it does, you can run curl in a fashion similar to:
curl --proxytunnel -x proxy:port -T localfile ftp ftp.upload.com
10 Einträge, 1 Seite |