Take a look at the output of lpq -Ptest -l or -ll (add more until you see
something useful, or do -L -- for a more verbose output) and see what you
discover. There may be a badly placed CR or something in the command when
sent through Samba, or the path may not be what you expect.

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630

On Fri, 4 Jan 2002, Joel Hammer wrote:

> This may be a second post of this problem, but I didn't get a single reply
> to my first post so maybe it didn't get posted for some reason.
>
> I am trying to print to a samba shared printer with linux, but am having a
> print filter problem. I have set up a queue "test2" to write to the
> share "test."
>
> The printer "test" works fine locally  with lpr -Ptest filetoprint and works fine 
>with the
> command below ON THE COMMAND LINE:
>
> cat FileToPrint | enscript -Z -p -  | smbclient //hammer2/test -N "-c print - "
>
> However, the command in a print filter:
>
> enscript -Z -p -  | smbclient //hammer2/test -N "-c print - "
>
> fails with a JABORT message in the status file when run by lpd.
>
> Removing the smbclient command allows the filter to function normally.
>
> This filter script works when called from the command line:
>
> cat FileToPrint | /var/spool/lpd/test2/filter.
>
> Any insight appreciated.
> Joel
>
>
>
>
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
> to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
>



-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to