Subject: | |
From: | |
Reply To: | |
Date: | Thu, 7 Sep 2006 08:24:22 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Friedrich,
I think the problem is that the ECHO commands are writing to a TEMP file and are not using the FILE Equation you specify. Try modifying the file equation and the Echo:
!file ftpXFER=ftpXFER;msg;DEV=DISC;SAVE
and add a back reference to force teh ECHO's to use the file equation:
!ECHO :print ftpbuy1 > *ftpXFER >> FTPLIST
Good luck.
RAT
Rich Trapp
Technical Solutions Architect
Managed Business Solutions
970.494.4980
http://www.mbshome.com
CONFIDENTIALITY NOTICE: The information in this email and subsequent attachments is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material from your computer.
________________________________
From: HP-3000 Systems Discussion on behalf of Friedrich Harasleben
Sent: Thu 9/7/2006 7:49 AM
To: [log in to unmask]
Subject: 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 *
|
|
|