Re: [Samba] Can't print properly through server, only direct client->printer

2004-09-02 Thread Doug VanLeuven
Simon Hobson wrote: Interestingly, I tried [0-9]+ and it doesn't select anything, whereas [0-9][0-9]* does. And now I see why VM\? failed, the \ was to escape the ?, and I overlooked the meaning of ? Anyway, I settled on '^[0-9][0-9]* VM[?]^M$' (where the ^M is a return, not two characters) whi

Re: [Samba] Can't print properly through server, only direct client->printer

2004-09-02 Thread Simon Hobson
Doug VanLeuven wrote: print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; lpr -P%p -o raw %s-2 I read ^[0-9]* *VM\? as match 0 or more occurances of a digit at the beginning of a line match zero or more occurances of a space match a V optionally match one M (shell interpretive issues with

Re: [Samba] Can't print properly through server, only direct client->printer

2004-08-31 Thread Doug VanLeuven
I read ^[0-9]* *VM\? as match 0 or more occurances of a digit at the beginning of a line match zero or more occurances of a space match a V optionally match one M (shell interpretive issues with backslash and ?) 3V)_ and 9VL@ both meet that criteria. rather ^[0-9]+ +VM\\[?] if you're looking for 0

Re: [Samba] Can't print properly through server, only direct client->printer

2004-08-31 Thread Simon Hobson
At 2:57 am +1000 6/7/04, Alex Satrapa wrote: What happens if you change the line to: print command = grep -v '^[0-9][0-9]* *VM\?$' ... Then I replied : It would have to be '^[0-9][0-9]* *VM\?^M$', but it didn't seem to match that. I think the chances of having a line that starts with that pat

Re: [Samba] Can't print properly through server, only direct client->printer

2004-07-06 Thread Simon Hobson
At 2:57 am +1000 6/7/04, Alex Satrapa wrote: What happens if you change the line to: print command = grep -v '^[0-9][0-9]* *VM\?$' ... It would have to be '^[0-9][0-9]* *VM\?^M$', but it didn't seem to match that. I think the chances of having a line that starts with that pattern is pretty re

Re: [Samba] Can't print properly through server, only direct client->printer

2004-07-05 Thread Alex Satrapa
On 5 Jul 2004, at 19:13, Simon Hobson wrote: At 10:32 am +1000 5/7/04, Alex Satrapa wrote: [printers] print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; lpr -P%p -o raw %s-2 What's this supposed to achieve? Looks to me like you're tampering with the PostScript by removing any li

Re: [Samba] Can't print properly through server, only direct client->printer

2004-07-05 Thread Simon Hobson
At 10:32 am +1000 5/7/04, Alex Satrapa wrote: [printers] print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; lpr -P%p -o raw %s-2 What's this supposed to achieve? Looks to me like you're tampering with the PostScript by removing any line that starts with 'VM?' optionally preceed

Re: [Samba] Can't print properly through server, only direct client->printer

2004-07-04 Thread Alex Satrapa
On 3 Jul 2004, at 19:13, Simon Hobson wrote: [printers] print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; lpr -P%p -o raw %s-2 What's this supposed to achieve? Looks to me like you're tampering with the PostScript by removing any line that starts with 'VM?' optionally preceede

[Samba] Can't print properly through server, only direct client->printer

2004-07-03 Thread Simon Hobson
We are having great problems printing from XP clients through our Samba server. We are using the Adobe PS driver, and are configured for automatic driver download/install from the server. Samba is 2.2.8a and part of a Suse OpenExchange server, printing is through CUPS. Printers are an assortmen