home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.novell
- Path: sparky!uunet!stanford.edu!kronos.arc.nasa.gov!butch!enterprise!news
- From: lb00197@Corlac (David Porco)
- Subject: Re: Capturing to best queue w/system login
- Message-ID: <lb00197.31@Corlac>
- Sender: news@enterprise.rdd.lmsc.lockheed.com
- Nntp-Posting-Host: 129.197.235.11
- Organization: Lockheed
- References: <C1H0tH.17J@world.std.com>
- Date: Tue, 26 Jan 93 21:07:43 GMT
- Lines: 47
-
- In article <C1H0tH.17J@world.std.com> levin@world.std.com (Levin F Magruder) writes:
-
- >I'd like to set up our workstations so that default capturing
- >is to the most nearby printer, irrespective of login name. (In
- >other words, no matter where Joe logs in, his printing will
- >be captured to the queue associated with the physically nearest
- >printer, unless subsequently overridden.)
-
- >(Talking about 2.15 w/Dos 3.30; soon to be 3.11/5.00)
-
- >1. Is there a way with DOS variables and Novell Login Scripts?
- >I tried #Capture q=%LANPNAME% in a user login script; just got
- >"Queue %LANPNAME% does not exist..." (w/dos var LANPNAME set to
- >a queue name).
-
- >2. Would the following work; do you forsee any problems; can
- >it work in a system login script?
- > Set dos var to nearby printer name in autoexec.
- > write a utility to get the variable name and
- > spawn a capture command set to the right queue
- > #call that utility from the login script
- > DOS SET that variable to make it go away.
- >Has anyone got such a utility written?
-
- >Does doing a DOS SET VARNAME= to blank out the name leave any kind
- >of "hole" if subsequent variable names have been assigned?
-
- >Any alternative suggestions, tangential tips, etc. welcome. Here
- >or mail, your discrection.
-
- Why not just setup a local.BAT file for each machine that just issues the
- CAPTURE (and other local stuff)? Then execute the local.BAT file from a
- login.BAT file or from the SYSTEM LOGIN script. Either way the capture
- command would be indigineous(sp?) to the specific machine. This is
- assuming, of coarse, that you allow EVERYONE to print to all of the
- queues.
-
- Hope this helps.
- .
- --------------------------------/^\----------------------------------
- The views expressed are my | | We make our own reality.
- own, and could change at any | |
- moment. | | ))))) ) ) ) ))))
- --------------------------------| | ) ) ))) ) ) )))
- David V. Porco | | )))) ) ) ) ))))
- Systems Programmer | | Certified Netware Engineer
- --------------------------------| |----------------------------------
-