From owner-freebsd-newbies@FreeBSD.ORG Fri Oct 3 23:34:15 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9334216A4B3 for ; Fri, 3 Oct 2003 23:34:15 -0700 (PDT) Received: from inspired.net.au (inspired.net.au [203.58.81.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5900343FEA for ; Fri, 3 Oct 2003 23:34:10 -0700 (PDT) (envelope-from dlodeiro@inspired.net.au) Received: (from uucp@localhost) by inspired.net.au (8.8.7/8.8.7) id QAA29797 for ; Sat, 4 Oct 2003 16:34:08 +1000 Received: from dsl-74.217.240.220.dsl.comindico.com.au(220.240.217.74), claiming to be ".dl.com" via SMTP by inspired.net.au, id smtpda29793; Sat Oct 4 06:34:04 2003 From: David L To: freebsd-newbies@freebsd.org Date: Sat, 4 Oct 2003 16:32:42 +1000 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310041632.42725.dlodeiro@inspired.net.au> Subject: Yep!... Still a Newbie X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 06:34:15 -0000 I set up a pc at home as a file server and printer server ( to print from both FreeBSD/ Linux clients as well as windows clients ), and thanks to a lot of posts, and a lot of google, I got it working very reliably. So I thought Ide replicate this on the FreeBSD server I set up at work, should'nt be to hard Ill just copy my configuration from my server. So I logged in to my home server from work ( using putty on windows ) and coppied the smb.conf printing configurations over. Unfortunately I cant copy and paste between putty and anything else like I can with terminals on KDE at home, so I had to retype it in, and I did so blindly, paying little attention to what I was typing. And it didnt work , and I couldnt figure out what it was for roughly 2 months of the occasional attempts. My home : print command = echo %J %p %s >> /tmp/junkJ;\ a="`echo '%J' | sed "s/^.*- //"`" ;\ echo This is truncated $a >> /tmp/junkJ;\ /usr/bin/lpr -Plp -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j Work : print command = echo %J %p %s >> /tmp/junkJ;\ a="'echo '%J' | sed "s/^.*- //"'" ;\ echo This is truncated $a >> /tmp/junkJ;\ /usr/bin/lpr -Plp -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j Eventually last night at about 1 in the morning, I actually took the time to read this, and I had a look at tmp and noticed that every time I sent a job to print from a win client, the file junkJ increased in size. I deleted it. And it came back when I sent another job to print, and got bigger with every editional job. And then I figured out what I did wrong. Why must 2 charachters be so similar? David L