Scripts LPT2,3 and 4 are similar except for the digit following LPT will be 2 for LPT2, 3 for LPT3 etc.
In my Natural pgm, I can use
define printer(1) output ‘LPT1’ with Write(1)
define printer(1) output ‘LPT3’ with Write(1)
define printer(1) output ‘LPT4’ with Write(1)
and everything works, and I can substitute different physical printer names, like dpp1 or dpp3 or systems in the scripts, and it routes the print to the correct printer according to whatever printer is specified in the script.
BUT, As SOON As I use
define printer(1) output ‘LPT2’
I receive Nat 1586, It does not like LPT2…I can use LPT1 or LPT3 or LPT4, I havent tried any others, but I know LPT2 will not work. It doesnt make sense to me.
thanks in advance
Hi Matthias, How is it in the Bufferpool?
Yes, I have learned to check permissions always, (hopefully), here is what I have
-rwxr-xr-x 1 sag sag 89 2007-04-25 14:18 LPT1
-rwxr-xr-x 1 sag sag 92 2007-04-26 15:03 LPT2
-rwxr-xr-x 1 sag sag 92 2007-04-26 14:58 LPT3
-rwxr-xr-x 1 sag sag 89 2005-10-21 11:33 LPT4
Aren’t there any differences in NATPARM? I think there’s a parameter called “print to file” for each printer which can be “Y” or “N”. In your case it has to be “N”. Because you don’t want to write into /usr/sag/Scripts/LPT1. You want to pipe into the script.
But to be honest, I don’t have any other ideas any more.
Here are the options in NATPARM: for that last field:
Physical (D)evice, (E)ntire Connection, (F)ile. Use [PF2] for selection list
I have all the entries set to ‘D’ for Physical Device… F would designate ‘FILE’
We’re at Nat 6.2.2 in Linux, so maybe different than yours.
I just found out it is intermittent… Now I can use LPT2, Last time I tried it didnt work, now it does… just great :roll:
thanks for your time