On Thu, 28 Jul 2011 10:44:52 -0500, Antonio Olivares wrote: > Made the changes with global /etc/csh.cshrc and it did not work :(
Requires re-login, but reboot should also be fine. :-) On the root prompt which (I assume!) has the C shell as the default dialog shell, % echo $PRINTER or % printenv PRINTER should show the correct name. The lp* tools will then use it (if set). > [olivares@quadcore ~]$ cat /etc/csh.cshrc > # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.6.1 2010/12/21 17:09:25 kensmith Exp > $ > # > # System-wide .cshrc file for csh(1). > > setenv PRINTER Deskjet I also have this in mine (although "Laserjet" is the name for the standard printer, and "Laserjet-nodup" for an "additional" printer without the duplexer). My login shell is the C shell. When I start bash from a csh prompt, I can also use the lp* commands, as $PRINTER will be "inherited". > But if I change lpr to lpr -P Deskjet, I can print. Then I will need > to play with it some more? Make sure the settings are in effect. According to the manpages and my experience (that it _does_ work this way) show that if $PRINTER is present, it will be used as the default -P parameter. It makes things easier. For example, _all_ printing does to the default printer. If a temporary change is needed, just set $PRINTER to a different value as long as you need it. If it's a "one time only" use, -P is definitely better. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"