Operating System - HP-UX
1826895 Members
3249 Online
109705 Solutions
New Discussion

Print Queue to process a Batch Job

 
John Flanagan
Regular Advisor

Print Queue to process a Batch Job

I have 4 print queues bsh1 to bsh4. these have an interface script as follows.

vis=`echo "$*" | awk '{print $4}'`
echo $vis > /tmp/sh$$
newgrp - visib
exit 0

Jobs are sent to these queues via a class BSH.

I get the following error.

printer bsh1 disabled since Jan 23 16:31 -
disabled by scheduler: ERROR: Printer interface script returned non-zero exit status.
fence priority : 0


On the machine I am currently replacing this works without problem. I can't see the difference in my configuration.

Can any body point me torwards a possible solution?

Regards,

John.
4 REPLIES 4
Simon Wickham_6
Regular Advisor

Re: Print Queue to process a Batch Job

Hi Jon,

Have you tried issuing an sbin/init.d/lp start and then look for the scheduler with say perl -wne 'print if /(fail|terminat(ed|ing)|lp|scheduler )/i' /var/adm/syslog/syslog.log

Regards,
Simon
Simon Wickham_6
Regular Advisor

Re: Print Queue to process a Batch Job

Also Is scheduler running??, If not start it and check log file.

lpsched -v
/var/adm/lp/log --> to check it.

Regards,
Simon
John Flanagan
Regular Advisor

Re: Print Queue to process a Batch Job

I have found my first problem. It was a group membership issue. It will be tomorrow morning before I get to test in full.


Thanks,

John.
Lolupee
Regular Advisor

Re: Print Queue to process a Batch Job

most of the printer files should be owned by lp and group lp, although the links could be owned by root check this properly.

effective directories are
/etc/lp/interface/*
/etc/lp/master/*
var/spool/lp/*

Others most also be checked.