Script with 'ftp' and rewrite using 'sftp'



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

Relevant Pages

  • Re: FTP delete problem
    ... the problem was a lock to a file that the ftp get worked, ... Bernard Cheah ha scritto: ... generate by schedule task. ... If i manually execute the script, the output wrote, but by schedule ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP delete problem
    ... Yes, the script looking the previous day log file, but when it's still ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ...
    (microsoft.public.inetserver.iis.ftp)
  • SUMMARY: AUTOMATED FTP WITH TWO LOGINS
    ... The script is now working, Michael DeSimone made the below suggestion: ... AUTOMATED FTP WITH TWO LOGINS ... can't find list of remote files, ...
    (SunManagers)
  • Re: Scripted FTP transfer
    ... Rather then specify the username and password in your script, ... going to run the ftp script, ... If you are running this from root, the .netrc will be created in / ... I'm trying to write a FTP command file on the fly to ...
    (comp.unix.sco.misc)
  • Re: FTP delete problem
    ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ... If i manually execute the script, the output wrote, but by ...
    (microsoft.public.inetserver.iis.ftp)