hi everybody,
The question i want to ask is how can i automate ftp login and uploading and downloading of files using VSFTP on Linux, using shell scripts? In other words, can explicit login and typing of username password be avoided by using shell scripts in any way to login to a ftp server. can uploading and downloading of files be automated by the shell scripts in any way?
Also can anyone suggest me some alternative approach where ftp's explicit login be avoided and if there is some other opensource products like rsync etc . Can they match ftp in functionality?
Best regards, sushant gulati
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
can uploading and downloading of files be automated by the shell scripts in any way?
IIANM, VSFTP is a FTP server. Which client are you using? Try ncftp.
ncftp -u <username> -p <password> <hostname>
you can automate it further using ncftpput and ncftpget.
-- Warm Regards ~~~~~~~~~~~~~~~ Vinayak http://theregoesanotherday.blogspot.com/
Check this out it can be of good help.
http://www.users.qwest.net/~eballen1/scripting.ftp.html
Also you can achive much more then this using "expect".
Animesh.
--- Vinayakam Murugan mvinayakam@gmail.com wrote:
can uploading and downloading of files be automated by the shell
scripts
in any way?
IIANM, VSFTP is a FTP server. Which client are you using? Try ncftp.
ncftp -u <username> -p <password> <hostname>
you can automate it further using ncftpput and ncftpget.
-- Warm Regards
Vinayak http://theregoesanotherday.blogspot.com/ -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Hi Sushant,
On Mon, 2005-11-14 at 19:00, Sushant Gulati wrote:
In other
words, can explicit login and typing of username password be avoided by using shell scripts in any way to login to a ftp server. can uploading and downloading of files be automated by the shell scripts in any way?
If you want to use normal ftp command u can use .netrc /etc/netrc to automate the upload/download.
man netrc
Only thing is that your user name / password will be stored in plain text.
Also can anyone suggest me some alternative approach where ftp's explicit login be avoided and if there is some other opensource products like rsync etc . Can they match ftp in functionality?
If you want to synchronise data between 2 locations,rsync is better alternative as only differences are downloaded/uploaded. You can use rsync with SSH to ensure security.
man rsync
Best regards, sushant gulati
HTH With regards,