I find that using the .netrc file for the connection details is easier
than having passwords etc in the actual script

I 'spect that's just me though

bob

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 18 February 2011 14:49
To: U2 Users List
Subject: Re: [U2] FTP from UV/unix

FYI - I use the following method from Unix UV for FTPing

      CMD="ftp -n -u <<EOF"
      CMD<-1>="open ":FTPSITE
      CMD<-1>="user ":FTPUSERNAME:" ":FTPPASSWORD
      CMD<-1>="passive"
      CMD<-1>="lcd /tmp"
      CMD<-1>="ascii"
      CMD<-1>="put ":FILENAME
      CMD<-1>="ls"
      CMD<-1>="bye"
      CMD<-1>="EOF"
      CMDHIST=CMD
*
      CONVERT AM TO CHAR(10) IN CMD
      EXECUTE "sh -c '":CMD:"'" CAPTURING JUNK2

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Confidentiality Notice:  This e-mail and any attachments are intended solely 
for the addressee and may contain confidential or privileged  information.   If 
you are not the named addressee, or the person responsible for delivering the 
message to the named addressee, please notify the sender as soon as possible 
and delete the material from your computer.  This message will be protected by 
copyright.  If it has come to you in error, you must not take any action based 
on its contents nor must you copy or show the message to any person other than 
the intended recipient. 
_____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to