From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 15:14:32 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96B361065670 for ; Thu, 28 Jul 2011 15:14:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 503A48FC16 for ; Thu, 28 Jul 2011 15:14:32 +0000 (UTC) Received: from r55.edvax.de (port-92-195-103-124.dynamic.qsc.de [92.195.103.124]) by mx02.qsc.de (Postfix) with ESMTP id 0D59C1E1FE; Thu, 28 Jul 2011 17:14:30 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p6SFEUq9002514; Thu, 28 Jul 2011 17:14:30 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 28 Jul 2011 17:14:30 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20110728171430.4b900bea.freebsd@edvax.de> In-Reply-To: References: <20110728151507.0c150f3c.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: printing to a HP Deskjet 812C printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 15:14:32 -0000 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, ...