home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.novell
- Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!news.sni.de!fam168!frank
- From: Frank Hoffmann <fh.pad@sni.de>
- Subject: Re: Disabling logins from a station
- Message-ID: <frank.715942753@fam168>
- Sender: news@nixpbe.sni.de
- Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
- References: <naren.715883958@gaia.sce.carleton.ca>
- Date: Tue, 8 Sep 1992 08:59:13 GMT
- Lines: 48
-
- naren@sce.carleton.ca (Narendra Mehta) writes:
-
-
- >I have set up a station as a remote printer with RPRINTER. I would like
- >to disable logins from this station. I tried the following from
- >system login script (Novell 3.11):
-
- > WRITE P_STATION
- > IF P_STATION = "00000000ABCD" THEN BEGIN
- > WRITE ...
- > #SYS:/PUBLIC/LOGOUT
- > END
-
- >The P_STATION is in capitals. The station ID I am comparing with is
- >12 digits long. I have compared the P_STATION ID that is printer from
- >the previous "write" and it appears to be ok. However, the IF...END
- >is never executed. If, however, I replace "=" with "!=", then it does
- >execute the IF...END block. What am I doing wrong?
-
- >Thanks.
-
- I tried the above code within my environment (NW 3.11) and it says:
-
- Script Error: Could not interpret line.
- The original line was:
- WRITE ...
-
- So anyway i don't know why/how it works on your side, but possibly you
- should omit the BEGIN statement. This is no longer needed within 3.11
- and i didn't find it in the docs as well. If it won't work then, probably
- you have missed one or the other updates coming from Novell (if you have
- registered :-)
-
- If i stated the above right: WRITE "..." , the IF-THEN block was correctly
- executed here.
-
- Hope this helps.
-
- frank
- -------------------------------------------------------------------------------
- __________ Frank Hoffmann
- / / Siemens-Nixdorf Info. Systems Voice: [+49] 5251 812 209
- /__ / Dept: AP 52 / SW-Production Fax: [+49] 5251 811 599
- /' _ _ __ // Fuerstenallee 7 USA: fh.pad@sni-usa.com
- __/__/__(_(_/ /_/^\__ W-4790 Paderborn / Germany !USA: fh.pad@sni.de
- -------------------------------------------------------------------------------
- The greatest of faults is to be conscious of none.
- -------------------------------------------------------------------------------
-