HP3000-L Archives

November 1996, Week 2

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:
"Stigers, Gregory - ANDOVER" <[log in to unmask]>
Reply To:
Stigers, Gregory - ANDOVER
Date:
Tue, 12 Nov 1996 11:16:37 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (75 lines)
I don't know what happened with this message!
Nota Bene:
>Date:    11/02/96 12:19 PM
This was originally posted and replied to ten days ago.

>----------
>From:  [log in to unmask][SMTP:[log in to unmask]]
>Sent:  Tuesday, November 12, 1996 8:28 AM
>To:    [log in to unmask]
>Subject:       Re: help with ftp
>
>By using ECHO, you can create an input file to FTP in which the name of
>!RAFILE is resolved.
>
>:IF FINFO("FTPIN","EXISTS") THEN
>:    IF (![FINFO("FTPIN","FOPTIONS")] BAND 1 = 1) THEN
>:        PURGE FTPIN
>:    ENDIF
>:ENDIF
>:IF FINFO("FTPIN","EXISTS") THEN
>:    IF (![FINFO("FTPIN","FOPTIONS")] BAND 2 = 2) THEN
>:        PURGE FTPIN,TEMP
>:    ENDIF
>:ENDIF
>:ECHO open {whatever} >FTPIN
>:ECHO {username} >>FTPIN
>:ECHO {password} >>FTPIN
>:ECHO cd {directory information} >>FTPIN
>:ECHO binary /*if binary mode is needed*/ >>FTPIN
>:ECHO put !RAFILE target_file >>FTPIN
>:ECHO exit >> FTPIN
>:RUN FTP.ARPA.SYS<FTPIN
>
>I assume you understand Command I/O Redirection (CIOR).  If not, please call.
>
>While it may seem like excessive zeal to purge a temporary file in a job
>stream,
>I always include the code as all of these routines are tested on-line first.
>Thus, I always have a clone-potential for a new task.  I have been burned, in
>testing, by a temporary file that already existed.  For example, if my first
>ECHO statement had '>>' instead of '>', that's can be fun.
>
>If you PRINT FTPIN, you will see the real name of RAFILE.
>
>Leonard Berkowitz
>RIA Group (Warren, Gorham & Lamont)
>617-292-8349 (E. S. T.)
>
>
>
>
>______________________________ Reply Separator
>_________________________________
>Subject: help with ftp
>Author:  [log in to unmask] at Internet-Exchange
>Date:    11/02/96 12:19 PM
>
>
>Can anyone tell me how to pass a file name into FTP from a job stream where
>the name of the file is not known until run time. The filename takes the form
>of
>RAddmmXX where ddmm is day and month. Everything is ok within MPE where
>the file can be manipulated using the variable !RAFILE, but this is not
>recognised
>by FTP.
>
>How do I go about this? I can be contacted by email at
>[log in to unmask] or at [log in to unmask] or by
>posting your solutions to the newsgroup.
>
>Thanks in anticipation,
>
>Michael Duignan.
>

ATOM RSS1 RSS2