Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 17:14:30 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: printing to a HP Deskjet 812C printer
Message-ID:  <20110728171430.4b900bea.freebsd@edvax.de>
In-Reply-To: <CAJ5UdcO5AqZE6VWQykwN=LxcixKCHtkLXdSyNBWL-wqcNKw5gw@mail.gmail.com>
References:  <CAJ5UdcM-BbvZHdMLsNH0xckFhgL8z-PfcyB_Q-eTnrfhjYHtUg@mail.gmail.com> <CANmv3=w_Qw_qfw_8gsT23JhOLG%2B7%2BwoottdC%2B-=Oe7zmEGEsGQ@mail.gmail.com> <CAJ5UdcON6Fpxi%2Br_wVjx4TUQW4pJufFdUQjh1bSsJw=a%2BZ8Drg@mail.gmail.com> <CANmv3=yz7TO-12zOVMj9MpjY91M18E4ePE=UzOtv8UxFUXJ=kg@mail.gmail.com> <CAJ5UdcM70MQh35hgzF8DG0r0iW7Vwd1s7y6r62VbFMpBd3_dDA@mail.gmail.com> <CANmv3=zSYQ1NXNW8QXi8HS3N_0NjWf0b5Xm6WE5vyubPQ-6cAg@mail.gmail.com> <CAJ5UdcNhFWRDpD1A0ADdmKUGUEB83s6hpgHUR8oew=LmFR12Eg@mail.gmail.com> <CANmv3=x5fakRvE8%2Bb8Xwa_yx6mCf_Uuhas7i73Pf2v=tXHB1Ew@mail.gmail.com> <CANmv3=wUmm=ZVmxGHtiX4M2tvAWeq0o5cwCE8A5Kxrd_Op9jYA@mail.gmail.com> <CAJ5UdcP%2BzgboZ27Y=Ehbg82DOR1xpptA9FgReXNeqzFTc8u3Pg@mail.gmail.com> <CAJ5UdcPejU0cmn5S_O2tFz=WrbwbG5fcVM9Xiq2V%2B_YMSFNF9Q@mail.gmail.com> <20110728151507.0c150f3c.freebsd@edvax.de> <CAJ5UdcO5AqZE6VWQykwN=LxcixKCHtkLXdSyNBWL-wqcNKw5gw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Jul 2011 09:57:08 -0500, Antonio Olivares wrote:
> Polytropon,
> 
> Thank you for the suggestion.  I am using bash as my shell.  I have a
> file ~/.bashrc with command in there and I get:
> 
> ========================
> bash: setenv: command not found
> 
> ========================

Of course. :-) The setenv command is specific to the
C shell (FreeBSD's default dialog shell). In bash (and
in sh too), you set an environmental vairable like this:

	export PRINTER="Deskjet"

This is short for

	PRINTER="Deskjet"
	export PRINTER

See "man bash" for details: "The supplied names are marked
for automatic export to the  environment  of subsequently
executed commands." - and so on.



> Contents of ~/.bashrc are as follows:
> /****************************************************
> 
> [olivares@quadcore /usr/home/olivares]$ cat .bashrc
> # User specific environment and startup programs
> setxkbmap -option compose:ralt &
> setenv PRINTER Deskjet &

I don't think you need to send any of them into
background (&), as they should be processed "right
away".

For example, your ~/.bashrc could look like this:

	setxkbmap -option compose:ralt
	export PRINTER="Deskjet"

Keep in mind that in _this_ case, $PRINTER is set for
_your_ account only (which should be fine on a single-
user system).

However, if you set it up in /etc/csh.cshrc for system-
wide use, user shells like bash should incorporate the
setting.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110728171430.4b900bea.freebsd>