Monday, April 25, 2005

script to ftp files to Windows ftpd server

"ftp -n 10.1.0.24 quote user cacusr
quote pass fapassword
binary
lcd /pg/cact3index/INDEXES/
put `date '+cact3index_%b%d%Y.tar'`
dir
quit"

This blogger does not allow me to upload "#!".
Actually, try this in a script file:

" #!/bin/sh"
" ftp -n localhost "<""< !""
quote user YourUserName
quote pass YourPassword
binary
put file1 file2
quit
" !"


You should not have any problems with passing passwords...


Cheers!

http://www.experts-exchange.com/Programming/Programming_Platforms/Unix_Programming/Q_10292843.html

0 Comments:

Post a Comment

<< Home