1 |
On 9/16/06, reader@×××××××.com <reader@×××××××.com> wrote: |
2 |
> Richard, I'm sorry it seems I've really wasted lots of your time here. |
3 |
> However I don't think this is the only problem. I really hope there |
4 |
> is not some other moronic user miconfig... |
5 |
|
6 |
np. I missed it too for several messages. :-) |
7 |
|
8 |
> I'm still unable to print (EVEN WITH THAT CURSED URL FIXED). |
9 |
|
10 |
I think the problem here is that my script is screwing things up. I |
11 |
actually had no idea what $0 would be in this case (thus the note that |
12 |
"this is just a guess" ;-)). It looks like when cups is calling |
13 |
smbspool, $0 is the name of the program, and not the URI of the device |
14 |
(see man smbspool to understand why I was uncertain here!). And I am |
15 |
changing DEVICE_URI to be whatever $0 was...which is wrong. |
16 |
|
17 |
So the fixed script should be |
18 |
|
19 |
------ |
20 |
#!/bin/bash |
21 |
tmpfile=/tmp/smbspool.$$ |
22 |
echo $0:$1:$2:$3:$4:$5:$6:$7 > $tmpfile |
23 |
env >>$tmpfile |
24 |
|
25 |
/usr/bin/smbspool.bin $1 $2 $3 $4 $5 $6 >>$tmpfile |
26 |
------ |
27 |
|
28 |
But actually at this point I think you can just move smbspool.bin back |
29 |
to smbspool, and things should work ok. |
30 |
|
31 |
Cheers, |
32 |
-Richard |
33 |
-- |
34 |
gentoo-user@g.o mailing list |