Subject: | |
From: | |
Reply To: | |
Date: | Wed, 18 Jan 2006 21:38:53 -0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Solution provided from member of HP9000-L
I adapted the Ftpin script file to cater for the differences in the
HP3000 and HP9000 ftp clients
cat TEMP
verbose
open 172.30.103.114
user sw/hpdown password
ascii
put TEMP hpftpdev/general/TEMPTONY.TXT
quit
Then invoked ftp client using the following wonderful unix command
(removing ftp.log and ftperr.log first)
cat TEMP | ftp -n >>ftp.log 2>ftperr.log
For anyone not yet familiar with unix (there's a lot to learn).
(1) cat is equivalent to print to stdout
(2) but the | means the output from the print is piped into ftp client
(3) the -n is a switch to turn off autoprompting in ftp
(4) the output from the FTP session is sent to two files ftp.log and
ftperr.log, (stdout and stderr)
The poster also suggested merging ftplog and ftperr using the
alternative below, but I still have to experiment with this variant.
cat file | ftp >ftp.log 2>&1
-----Original Message-----
From: Tony Summers
Sent: 18 January 2006 20:19
To: [log in to unmask]
Subject: FW: Automating FTP transfers
Just posted to HP9000-L
-----Original Message-----
From: Tony Summers [mailto:[log in to unmask]]
Sent: 18 January 2006 20:17
To: [log in to unmask]; [log in to unmask]
Cc: Tony Summers
Subject: Re: Automating FTP transfers
Hello. I'm new to this list (I'm starting a migration from the HP3000).
And I found a discussion in the archives on automating FTP transfers in
HP- UX.
The previous discussion commented that HP-UX's FTP client did not appear
to support the exitonerror command, which may only be supported on the
HP3000. I have a similar migration question.
On the HP3000 we automate our ftp sessions by first preparing a short
script and then feeding that script to the FTP client's STDIN and
feeding the output from the FTP session to another file (in the example
below MYFTPOUT.
eg.
:print myftpin
EXITONERROR
OPEN rhs-data-1.sw.corp
USER sw/hpdown bondage
TIMEOUT 30
ASCII
PUT TEMP hpftpdev\general\TEMP.TXT
EXIT
The contents of this email are confidential to the intended recipient
and may not be disclosed. Although it is believed that this email and
any attachments are virus free, it is the responsibility of the recipient to confirm this.
Smith & Williamson Corporate Finance Limited - A member of the London Stock Exchange.
A member of M&A International Inc. http://www.mergers.net Registered in England No. 4533970. Authorised and regulated by the Financial Services Authority
Smith & Williamson Investment Management Limited, Registered No. 976145. Authorised and regulated by the Financial Services Authority.
Smith & Williamson Pension Consultancy Limited - Independent Intermediary. Registered No. 3133226. Authorised and regulated by the Financial Services Authority.
Smith & Williamson Fund Administration Limited, Registered No. 1934644. Authorised and regulated by the Financial Services Authority.
Smith & Williamson Limited - A member of Nexia International. Registered in England No. 4534022. Regulated by the Institute of Chartered Accountants in England & Wales for a range of investment business activities.
NCL Investments Limited, Registered No. 1913794.
Member of the London Stock Exchange authorised and regulated by the Financial Services Authority.
Registered Office: 25 Moorgate, London EC2R 6AY
Telephone: 020 7131 4000 http://www.smith.williamson.co.uk
Nexia Audit Limited - A member of Nexia International. Registered in
England No. 4469576. Registered to carry on audit work and regulated by the Institute of Chartered Accountants in England & Wales for a range of investment business activities.
Registered Office: 25 Moorgate, London EC2R 6AY
Telephone: 020 7131 4000 http://www.nexiaaudit.co.uk
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|