HP3000-L Archives

October 2004, Week 5

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:
Greg Terterian <[log in to unmask]>
Reply To:
Date:
Fri, 29 Oct 2004 12:04:36 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
I have the following test script:

!JOB GREG,MGR.TFTP,PUB;HIPRI
!SETVAR GREG "TRUE"
!FTP
OPEN 192.168.1.111
USER MGR.TFTP

PASS
!IF GREG = "FALSE" THEN
GET JOBSMPLE
!ENDIF
QUIT
!EOJ

And here is the $STDLIST for that script... as you can see, it checks the condition and says that it is going to ignore till it finds the matching endif, but is still processing the lines inbetween.  Am I missing something?  Or FTP does not care about the 'IF'?

:JOB GREG,MGR.TFTP,PUB.
 Priority = DS; HIPRI; Time = UNLIMITED seconds.
 Job number = #j91.
 FRI, OCT 29, 2004,  8:56 AM.
 HP3000  Release: C.70.00   User Version: C.70.00
 MPE/iX  HP31900 C.39.06  Copyright Hewlett-Packard 1987.
 All rights reserved.
 STREAMED BY GREG,OP.AMSOP (#S88) ON LDEV# 8
    STREAM DATE:   FRI, OCT 29, 2004,  8:56 AM
 :SETVAR GREG "TRUE"
 :FTP

 File Transfer Protocol [A0011L11] (C) Hewlett-Packard Co. 2002 [PASSIVE SUPPORT
]
 ftp> OPEN 192.168.1.111
 220 HP ARPA FTP Server [A0011L10] (C) Hewlett-Packard Co. 2000 [PASV SUPPORT]
 Connected to 192.168.1.111.  (FTPINFO 40)
 ftp> USER MGR.TFTP
 230 User logged on
 Remote system type is MPE/iX
 200 Type set to I.
 ftp>
(24/43) Continue?
 ftp> PASS
 Passive mode is on.
 ftp> :IF GREG = "FALSE" THEN
 *** EXPRESSION FALSE: COMMANDS IGNORED UNTIL MATCHING ELSEIF/ELSE
 /ENDIF
 ftp> GET JOBSMPLE
 227 Entering Passive Mode (192,168,1,111,226,8)
 150 File: JOBSMPLE opened; data connection will be opened
 227 Entering Passive Mode (192,168,1,111,226,10)
 150 File: JOBSMPLE opened; data connection will be opened
 There is an error closing the target file.  (FTPERR 67)
 226 Transfer complete.
 ftp> :ENDIF
 *** RESUME EXECUTION OF COMMANDS
 ftp> QUIT
 221 Server is closing command connection

 :EOJ
 CPU sec. = 3.  elapsed min. = 1.  FRI, OCT 29, 2004,  8:56 AM.


Thanks in advance for all your help!

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2