Re: Script with 'ftp' and rewrite using 'sftp'



<< means read from here to the end.

Why take a secure file transfer medium and code a visible password in the
script ?

BV
--- Denny Watkins <watkins@xxxxxxxxxxxxxxx> wrote:

Aixers,

I have an old script written by someone else. The script is as follows
NOTE: ip address,login name, password,etc have been changed):

ftp -inv<<!
open xxx.xxx.xxx.xxx
user user-name password
cd /cgi-bin/import/
dir
as
put some.txt
dir
quit


Question #1: What does "<<!" really mean?

Question #2: How would one rewrite this script to use sftp?

Thanks,

Denny Watkins
Morningside College
Sioux City, IA 51106-1717

Phone: 712-274-5250

Email: watkins@xxxxxxxxxxxxxxx




____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html