[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Environment Variables



Shouldn't you also "export PRINTER" once you have set it?

David Hamm wrote:
> 
> I'd like to have a way to set my default printer on the fly from a child
> process (i.e. a program that sets the default printer ).  If I set the PRINTER
> environment variable to something like this, "PRINTER=`cat ~/defprinter`", the
> environment variable only gets set at the time the variable is declared.  Is
> there a way to have the variable set each time it is accessed?

-- 
Andrew Newton
lfs at eskimo.com 
www.eskimo.com/~lfs