home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / novell / 7081 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.3 KB  |  60 lines

  1. Newsgroups: comp.sys.novell
  2. Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!news.sni.de!fam168!frank
  3. From: Frank Hoffmann <fh.pad@sni.de>
  4. Subject: Re: Disabling logins from a station
  5. Message-ID: <frank.715942753@fam168>
  6. Sender: news@nixpbe.sni.de
  7. Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
  8. References: <naren.715883958@gaia.sce.carleton.ca>
  9. Date: Tue, 8 Sep 1992 08:59:13 GMT
  10. Lines: 48
  11.  
  12. naren@sce.carleton.ca (Narendra Mehta) writes:
  13.  
  14.  
  15. >I have set up a station as a remote printer with RPRINTER.  I would like
  16. >to disable logins from this station.  I tried the following from 
  17. >system login script (Novell 3.11):
  18.  
  19. >        WRITE P_STATION
  20. >    IF P_STATION = "00000000ABCD" THEN BEGIN
  21. >          WRITE ...
  22. >          #SYS:/PUBLIC/LOGOUT
  23. >        END
  24.  
  25. >The P_STATION is in capitals.  The station ID I am comparing with is
  26. >12 digits long.  I have compared the P_STATION ID that is printer from
  27. >the previous "write" and it appears to be ok.  However, the IF...END
  28. >is never executed.  If, however, I replace "=" with "!=", then it does
  29. >execute the IF...END block.  What am I doing wrong?
  30.  
  31. >Thanks.
  32.  
  33. I tried the above code within my environment (NW 3.11) and it says:
  34.  
  35. Script Error: Could not interpret line.
  36. The original line was:
  37.    WRITE ...
  38.  
  39. So anyway i don't know why/how it works on your side, but possibly you
  40. should omit the BEGIN statement. This is no longer needed within 3.11
  41. and i didn't find it in the docs as well. If it won't work then, probably
  42. you have missed one or the other updates coming from Novell (if you have
  43. registered :-)
  44.  
  45. If i stated the above right: WRITE "..." , the IF-THEN block was correctly
  46. executed here.
  47.  
  48. Hope this helps.
  49.  
  50. frank
  51. -------------------------------------------------------------------------------
  52.     __________                  Frank Hoffmann
  53.      /             /    Siemens-Nixdorf Info. Systems Voice: [+49] 5251 812 209
  54.     /__           /      Dept: AP 52 / SW-Production    Fax: [+49] 5251 811 599
  55.    /' _  _   __  //            Fuerstenallee 7          USA: fh.pad@sni-usa.com
  56. __/__/__(_(_/ /_/^\__    W-4790 Paderborn / Germany    !USA: fh.pad@sni.de
  57. -------------------------------------------------------------------------------
  58.         The greatest of faults is to be conscious of none.
  59. -------------------------------------------------------------------------------
  60.