Local Printing / MFGPRO / Linux

all4one

New Member
Guys,

Is it possible to print via a Linux server to a users local LPT port when using MFGPRO (EB2), if so how ? (I don't really want to setup shared printers using Windows)

Thanks

Steve
 
Hi Steve,

The first thing is necessary, you have to set the default printer correct on the PC. In your case it has to be routed to the LPT output.

The following technique works with VT220 terminals. With the first Escape sequence you "close" the output to the screen. All the following output is re- directed to the screen.
With the second escape sequence you "re-open" the output to the screen.

Either you define a new printer with the necessary sequences and use the following strings:

/027[5i /* Start */
/027[4i /* End */

If you want to use a script cut and paste the following:

>>>start script
#!/bin/sh
# Script to print output from MFG/PRO via Windows on default printer
# Versie 1.0
#

trap "rm -f $filename" 0
filename=/tmp/$$.$LOGNAME # Create unique filename: Procesnr + Userid

echo "" > $filename # Close the window output and redirect
cat >> $filename # "Cat" the contents to a file
echo "" >> $filename # Add the close sequence to the file
cat $filename # "Print the file"
rm -f $filename # Clean up the temporary file
#
<<< end script

It is the old-fashioned way, but it runs already for more than 14 years!

William W.
 
Thanks William,

Can I setup one LPT printer in MFGPRO for each model of printer eg. if i have 5 users with local HP 4si can they all use the same option or di i need to setup 5 different LPT printers ?
 
Yes you are correct. You setup a new 36.13.2 outputdevice for each type of printer.
In your example HP4Si.

In broader sense you normally use this printer for reports. Then you setup those up for a brand of printer. (HP , TALLY, etc..)

William
 
Back
Top