From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: [OT] print to printer on winxp via cups samba smb
Date: Sat, 16 Sep 2006 21:27:38 -0700 [thread overview]
Message-ID: <7573e9640609162127y5ced05aq28933f209c84ed2a@mail.gmail.com> (raw)
In-Reply-To: <8764fn2qh4.fsf@newsguy.com>
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
next prev parent reply other threads:[~2006-09-17 4:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 16:59 [gentoo-user] [OT] print to printer on winxp via cups samba smb reader
2006-09-13 20:04 ` Mick
2006-09-14 0:37 ` [gentoo-user] " reader
2006-09-13 20:18 ` [gentoo-user] " Richard Fish
2006-09-14 1:10 ` [gentoo-user] " reader
2006-09-14 1:55 ` Richard Fish
[not found] ` <87y7snqifr.fsf@newsguy.com>
2006-09-14 4:27 ` Richard Fish
[not found] ` <87ac52k3o1.fsf@newsguy.com>
2006-09-14 13:56 ` reader
2006-09-15 7:40 ` Richard Fish
2006-09-15 13:52 ` reader
2006-09-15 16:55 ` Richard Fish
2006-09-15 17:56 ` reader
2006-09-15 23:57 ` Richard Fish
2006-09-17 2:09 ` reader
2006-09-17 4:27 ` Richard Fish [this message]
2006-09-17 11:44 ` reader
2006-09-17 15:21 ` Richard Fish
2006-09-18 17:12 ` reader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7573e9640609162127y5ced05aq28933f209c84ed2a@mail.gmail.com \
--to=bigfish@asmallpond.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox