From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-51209-garchives=archives.gentoo.org@gentoo.org>)
	id 1GOoOC-0006SI-MB
	for garchives@archives.gentoo.org; Sun, 17 Sep 2006 04:36:21 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8H4YL3W020382;
	Sun, 17 Sep 2006 04:34:21 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8H4Rc9B018511
	for <gentoo-user@lists.gentoo.org>; Sun, 17 Sep 2006 04:27:38 GMT
Received: by nf-out-0910.google.com with SMTP id p46so3253551nfa
        for <gentoo-user@lists.gentoo.org>; Sat, 16 Sep 2006 21:27:38 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
        b=Bf7YxhH4Qg22w0oN0e7miKyX+l98xc0ZHehu/c8SAnQ/AJqB3uQOfdZXrlgGXtBDOAbdhfTsbuCkBiRThiYvAc4ENuHICWBuMWa4Rowm3idsJbk0lXmZXCoCTnpedhFCT9oDvkXUu0118EFj1+Yc9j3uTb/GFTG0JzwpQkPBo5w=
Received: by 10.82.120.14 with SMTP id s14mr65199buc;
        Sat, 16 Sep 2006 21:27:38 -0700 (PDT)
Received: by 10.82.126.14 with HTTP; Sat, 16 Sep 2006 21:27:38 -0700 (PDT)
Message-ID: <7573e9640609162127y5ced05aq28933f209c84ed2a@mail.gmail.com>
Date: Sat, 16 Sep 2006 21:27:38 -0700
From: "Richard Fish" <bigfish@asmallpond.org>
Sender: richard.j.fish@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: [OT] print to printer on winxp via cups samba smb
In-Reply-To: <8764fn2qh4.fsf@newsguy.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <87lkonvh18.fsf@newsguy.com> <87y7snqifr.fsf@newsguy.com>
	 <7573e9640609132127w4f9d254fq9bbc3a763ddfadf7@mail.gmail.com>
	 <87ac52k3o1.fsf@newsguy.com>
	 <7573e9640609150040l25e16ca8ld5b035624b68d880@mail.gmail.com>
	 <87slitw82z.fsf@newsguy.com>
	 <7573e9640609150955s75ef9554g20bf0f9474c2c797@mail.gmail.com>
	 <871wqdui7u.fsf@newsguy.com>
	 <7573e9640609151657i74a3e196xd78970734bc4fb44@mail.gmail.com>
	 <8764fn2qh4.fsf@newsguy.com>
X-Google-Sender-Auth: c980e605f0603043
X-Archives-Salt: 3120e5ca-184c-4fb4-8fd6-4cb32ed26685
X-Archives-Hash: 70f5cf29a91b9773bebfa6b0f02976c0

On 9/16/06, reader@newsguy.com <reader@newsguy.com> wrote:
> Richard, I'm sorry it seems I've really wasted lots of your time here.
> However I don't think this is the only problem.  I really hope there
> is not some other moronic user miconfig...

np.  I missed it too for several messages. :-)

> I'm still unable to print (EVEN WITH THAT CURSED URL FIXED).

I think the problem here is that my script is screwing things up.  I
actually had no idea what $0 would be in this case (thus the note that
"this is just a guess" ;-)).  It looks like when cups is calling
smbspool, $0 is the name of the program, and not the URI of the device
(see man smbspool to understand why I was uncertain here!).  And I am
changing DEVICE_URI to be whatever $0 was...which is wrong.

So the fixed script should be

------
#!/bin/bash
tmpfile=/tmp/smbspool.$$
echo $0:$1:$2:$3:$4:$5:$6:$7 > $tmpfile
env >>$tmpfile

/usr/bin/smbspool.bin $1 $2 $3 $4 $5 $6 >>$tmpfile
------

But actually at this point I think you can just move smbspool.bin back
to smbspool, and things should work ok.

Cheers,
-Richard
-- 
gentoo-user@gentoo.org mailing list