[Samba] Can't print properly through server,
only direct client->printer
Alex Satrapa
alex.satrapa at anu.edu.au
Mon Jul 5 16:57:06 GMT 2004
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 line that starts with 'VM?'
>> optionally preceeded by any number of spaces, optionally preceeded by
>> any number of numeric digits.
>
> That's correct, without it hardly any jobs print at all !
[snip]
> The line that invokes the procedure is always :
>
> nnnn VM?^M
> (where nnnn is a variable number defining the VM requirements)
What happens if you change the line to:
print command = grep -v '^[0-9][0-9]* *VM\?$' ...
That way you can avoid chopping out lines that just happen to start
with VM (eg: base64 encoded cruft). I'm just curious.
More information about the samba
mailing list