Operating System - HP-UX
1833464 Members
2955 Online
110052 Solutions
New Discussion

lpalt can not recognize printing id.

 
jane zhang
Regular Advisor

lpalt can not recognize printing id.

I tried lpalt in our system.
1. I used this command to find the job id.
lpstat -t | grep sjs00214 // sjs00214 is one network printer added to our hp-unix server
2. lpstat shows sjs00214-7112.
3. lpalt sjs00214-7112 -dsjs00365 //sjs00365 is another network printer
but the system told me it can find the id sjs00214-7112.
I try to cancel the job by using
cancel sjs00214-7112
cancel command recognized the printing id.

Any ideas?
Thanks,
Jane
6 REPLIES 6
Cheryl Griffin
Honored Contributor

Re: lpalt can not recognize printing id.

This is from the lpalt man page:
WARNINGS
A remote print request can be altered or canceled only by the user who requested it, and only from the system from which the the original lp command was issued.

For a remote system, lpalt cannot change dest and priority.

Cheers,
Cheryl
"Downtime is a Crime."
S.K. Chan
Honored Contributor

Re: lpalt can not recognize printing id.

If I'm not mistaken lpalt can only be run on the print server itself, not from remote workstation. Check "man lpalt". In your case run the lpalt on the server where sjs00214 is configure as the network printer. Also it must be run by root or the user that originally prints it.
Rich Wright
Trusted Contributor

Re: lpalt can not recognize printing id.

the lpmove command will move a single print job to a new queue. Use the form:
/usr/sbin/lpmove requests dest
Jordan Bean
Honored Contributor

Re: lpalt can not recognize printing id.

From lp(1):

The lpalt command alters a request made by a previous lp command, if it is not currently printing. (To requeue a currently printing request, use the disable command (see enable(1)) to stop the printer.)

jane zhang
Regular Advisor

Re: lpalt can not recognize printing id.

Hi all,
I guess I can not use lpalt command to change printing queue to another dest since all the pritner are network printer?

what is the alternative to achieve the same thing, I do not favor the lpmove since This command can be used only when lpsched is
not running.

server: hp-unix, printers: network printers.
we are using reflection X to access our server from our PCs.

Regards,



Jane
Rich Wright
Trusted Contributor

Re: lpalt can not recognize printing id.

To not stop scheduler, you have to cheat and respool the job from the queue.
lp -d /usr/spool/lp/request//dA...
Where dA... is a combination of job number and host name.
You can even get fancy and read the corresponding cA... file to get the lp arguments.
This command would have to be run as user lp or root.