Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer issues 1

Status
Not open for further replies.

sbrews

Technical User
Jun 11, 2003
413
US
I have a print que that goes to a Canon Image Runner 8070 (multi function) printer. I can print to it successfully from the unix command line. However, when my users try to print to it from within the Lawson application, nothing prints - the print job just dissappears.

I have stopped the que and had them send a print job. I can see the job in the que. So, I know it made it that far. I suspect there is a PCL/escape sequence in the job that is causing it to "disappear" once it hits the printer. Is there any way I can look into this pending print job and see what its trying to send to the printer?

Printer is a Canon Image Runner 8070.
OS is AIX 5.2 ML6
Using AIX print spooling (not System V print spooling).

Any info/tips/pointers in the right direction will be greatly appreciated.

scott
 
are you sure that the print job submitted while the que is down is the one that should be printed by the application?

why don't you view the spool while the que is down and see the print job to make sure that its the one

i don't think that it is something to do with the AIX i think its the application setup somehow. Why don't you call the application support line for that

Regards,
Khalid
 
hi,
add a queue (smitty mkpq) and choose as type :

other, User Defined Backend

where

Que.name = [sample_q]
Que.device = [sample_dev]
BACKEND Program = [/tmp/myscript.sh]

======================================

Create the script writing inside

cp $1 /tmp/myfile.txt



Try to use the queue from command line

enq -P sample_q /tmp/myscript.sh

and verify /tmp/myfile.txt is created



Set your application to print on this queue and
analyze /tmp/myfile.txt

If you discover that operations have to be done on the file,
inside script you can put any commands as


cp $1 /tmp/Lawson_1.$$.prn

sed '........' /tmp/Lawson_1.prn > /tmp/Lawson_2.$$.prn

or awk, cut, while true do ... done, ecc

enq -P YourCanonQueue /tmp/Lawson_2.$$.prn

rm /tmp/Lawson_?.$$.prn


BYE

 
Thanks victorv - that gave me what I needed to figure out what the app was sending to the que.

scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top