HP3000-L Archives

September 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lee Gunter <[log in to unmask]>
Reply To:
Lee Gunter <[log in to unmask]>
Date:
Tue, 7 Sep 1999 07:38:29 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
Build your ftp task by :ECHO-ing the appropriate statements to a job-temporary
file, then pass the file to ftp as input.  For example,

     :setvar dirdate '19980908'
     :purge ftpin;temp
     :ECHO  open remotesys    >> ftpin
     :ECHO  user myuser       >> ftpin
     :ECHO  <password>        >> ftpin
     :ECHO  cd ..             >> ftpin
     :ECHO  mkdir !dirdate         >> ftpin
     ...
     ...
     :run ftp.arpa.sys        < ftpin

----
Lee Gunter                    The Regence Group
Supervisor, TRG HP/MPE Systems     503.375.4498
----
Opinions expressed are solely mine.



From: Gary Pastor <[log in to unmask]> on 09/07/99 01:35 AM

Please respond to Gary Pastor <[log in to unmask]>


To:   [log in to unmask]
cc:    (bcc: Lee Gunter/BCBSO/TBG)
Subject:  [HP3000-L] ftp and hp variables




Is it possible to use hp variables or defined variables in ftp.

I need to ftp certain files to an NT server, but I need to create the
directory the files are to be ftp'd into. The directory name will be a date.
e.g. 19990908. I can build the directory name in my jobstream and save as a
variable. I then try to use the variable in ftp, using the 'mkdir' command
with the variable name. i.e. mkdir !dirdate. This does not work, as it just
creates a directory called !dirdate on the NT server.

How can I work around this?

Thanks

Gary Pastor

ATOM RSS1 RSS2