Subject: | |
From: | |
Reply To: | |
Date: | Thu, 7 Sep 2006 15:04:03 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Friedrich,
You have to escape the embedded > and >>. Add a leading bang (!).
Replace
!ECHO :print ftpbuy1 > ftpXFER >> FTPLIST
!ECHO :print ftpbuy1 >> ftpXFER >> FTPLIST
With
!ECHO :print ftpbuy1 !> ftpXFER >> FTPLIST
!ECHO :print ftpbuy1 !>> ftpXFER >> FTPLIST
regards,
Robert W.Mills
MIS Systems Development Manager
Windsong Services
+44 (0)20 8309 3604
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Friedrich Harasleben
Sent: 07 September 2006 14:50
To: [log in to unmask]
Subject: [HP3000-L] Redirect commands
Hi
does anyone know how to overcomes this:
I want to gather information on files in different subdirectories, which
have to be retrieved via FTP.
I would like to get all of their names first into msg file.
I tried something like below, but
!ECHO :print ftpbuy1 > ftpXFER >> FTPLIST turn out to be a problem in
the job, if done manually (without redirection it works).
any idea how to use several rederictions in one commandling.
thankx
friedrich
!JOB FTPTEST, MGR.OEKVT
!file ftpXFER=ftpXFER;msg
!ECHO open !crs_xfer_srv > FTPLIST
!ECHO USER xxxxxx >> FTPLIST
!ECHO yyyyyyy >> FTPLIST
!ECHO EXITONERROR >> FTPLIST
!ECHO cd /users/files/OKPARAG >> FTPLIST
!ECHO ls P* ftpbuy1 >> FTPLIST
!ECHO :print ftpbuy1 > ftpXFER >> FTPLIST !ECHO cd /users/files/OKPARAG
>> FTPLIST
!ECHO ls B* ftpbuy1 >> FTPLIST
!ECHO :print ftpbuy1 >> ftpXFER >> FTPLIST
!ECHO exit >> FTPLIST
!run ftp.arpa.sys < ftplist
!print ftpxfer
!eoj
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|