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 "[5i" > $filename # Close the window output and redirect
cat >> $filename # "Cat" the contents to a file
echo "[4i" >> $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.