unix - Getting file through FTP using shell script -


i trying csv file remote server through ftp using unix script.i facing wired problem here.file not being fetched time. gets file sometime dose not.

ftp -v -i -n <<eof > $log_path/   open $ftp_site  user $ftp_user $ftp_pass  ascii  hash  passive   cd training_uploads   mget  *.csv   pwd  quit                       eof 

'ftp' 80s! why don't move foodchain little?

wget --user="${ftp_user}" --password="${ftp_pass}" "${ftp_site}/dir/files" 

wget supports ftp protocol , can continue interrupted downloads, can exclude files, can recursive retrieval , anything.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -