[K12OSN] print based on location
Christopher K. Johnson
ckjohnson at gwi.net
Sun Aug 29 02:26:55 UTC 2004
Tim Scholten wrote:
> hi
> I am trying to make it so that when a user prints, it will print to
> the printer in the same room. I looked in the archives an found this
> thread
> http://www.redhat.com/archives/k12osn/2003-October/msg00139.html ,
> exactly what i am trying to accomplish here.
>
> I tried using his script in /etc/profile.d/ with the changes for this
> location, but the default printer is still the original default.
>
> Is there else who has had a similar situation? If so what was your
> solution?
>
> thanks for any help,
> Tim
Ok, the answer is - use 'lpoption -dprintername' from within the script.
It updates ~/.lpoptions with the new default, overriding the cups
default printer for that user.
Wouldn't hurt to do that in addition to setting PRINTER env variable.
See 'man lpoptions'
--
-----------------------------------------------------------
"Spend less! Do more! Go Open Source..." -- Dirigo.net
Chris Johnson, RHCE #807000448202021
More information about the K12OSN
mailing list