cURL commands

1. Downloading a from FTP server

 curl  -u  ‘DOMAIN/user_name:passwd’  ‘ftp://server.com/path/to/file_name.txt’  -o  ‘/home/purusothaman/files/bkup/file_name.txt’

 

2. Uploading to a FTP Server

curl -u ‘DOMAIN/user_name:passwd’  -T   ‘/path/to/local/file.txt’  ‘ftp://server.com/path/to/destination/directory/’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: