Print Command not working

Drew Morone tdrew at cairn.org
Tue Mar 23 17:15:13 GMT 1999


Hi there,

I'm having an unusual problem.
We are running Samba 1.9.18p8 on an Intel PII running Unixware 2.1.2.
Recently recently we've been seeing problems with samba printing. 
We've narrowed it down to a problem with the "Print Command" function in
smb.conf.
At some point, whatever is configured as the "Print Command", never gets
executed. Even if the print command is to just copy the print file to the
/tmp directory (which is what I ended up doing to try to isolate the problem
away from system printing issues). The odd thing is that if I start samba
with a debug of 5, it -shows- the command being issued in the log files. The
following shows that the command to move the print file to the /tmp
directory was run:

Running the command `cat /home/public/spool/drew.b006Rx | lp -d hp3main' gave 0
1999/03/24 11:07:05 tdrew closed file drew.b006Rx (numopen=0)

I assume that the "gave 0" means that the command returned a "true" exit
status. The command never actually executes. 

The solution has been to restart samba. That would work for a few minutes,
then I would have to do it again. 

Also note that all of the other samba services continued to work without any
problems.

Does anyone have any suggestions as to what might be causing this problem? 

Drew



More information about the samba mailing list