Your IF statement is still inside FTP.
MPE won't see it.
(There are MPEX ways around it, details if asked.)
BT
Tracy Johnson
MSI Schaevitz Sensors
> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
> Behalf Of Greg Terterian
> Sent: Friday, October 29, 2004 12:05 PM
> To: [log in to unmask]
> Subject: [HP3000-L] Does 'IF' really works?
>
>
> 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 *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|