My220x Posted March 23, 2008 Posted March 23, 2008 Hey, I was wondering if anyone can create a batch script which would ftp into a linux server and download a file?
kmount Posted March 23, 2008 Posted March 23, 2008 Sure, its possible. I'd urge against using ftp though in favour of SFTP for both security/ease. If this is ok by you, it should be easy enough to make you a small script.
Jona Posted March 23, 2008 Posted March 23, 2008 It's quite easy you need to make a file (called commands.txt in this instance) as follows: GET file.extention then use ftp -s commands.txt http://www.nsftools.com/tips/MSFTP.htm But it does store and transmit the password in plain text so SCP might be a better option. There is an SCP client bundled with the putty suite see: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now