Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Groff printing from Linux to Windows network printer

Groff printing from Linux to Windows network printer

2005-05-24       - By Michael Velez

 Back

I'm trying to print groff format from my linux machine to a network printer
on a windows system.

I created a small groff file with the following commands.

-- ---- ---- -- START OF FILE -- ---- ---- ---
nf
ps 8
vs 8
tl 'THIS IS THE TITLE''050518'

Text of ascii file, spanning multiple print pages, needing to be formatted.

-- ---- ---- -- END OF FILE -- ---- ---- ---- --

I then execute the following command:

groff -l -ma4 <filename>

The above file prints correctly with said changes (font size and line
spacing) except that on each page the first few lines are not printed.
Initially assuming that it was an issue with the page size, I set printing
to the A4 format (as I live in Europe) and tried various page lengths.
Nothing helped.

If I just use the 'lpr' command, I get all lines properly printed (of course
not formatted so the .nf and other commands appear as pure text).

Does anybody know why this is happenning?

Should the groff printing work at all as I didn't "consciously" set the
printer as a Postscript printer? (Forgive my ignorance as this is the first
time I use groff).

If I do the same groff command from my Windows machine (using Cygwin), it
seems it is the postscript output that gets printed. But on Linux, the file
gets properly formatted and only the formatted file (not the postscript
output) is printed.  I don't have a good idea how printing is managed on
Linux but I'm assuming by default there is a Postscript
processor/interpreter(?).

Is there an easy way to get this to work?  Is there a better way to print an
ascii text file that needs to be slightly reformatted?

Michael

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.