Return-Path: owner-linux-activists@Niksula.hut.fi
Received: from joker.cs.hut.fi (root@joker.cs.hut.fi [130.233.40.32]) by keos.Helsinki.FI (8.6.9/H46) with SMTP id HAA03473 for <wirzeniu@cs.Helsinki.FI>; Thu, 3 Nov 1994 07:56:31 +0200
Received: from joker.cs.hut.fi by niksula.hut.fi id <55754-1>; Thu, 3 Nov 1994 02:04:36 +0200
From: "Linux Activists" <linux-activists@Niksula.hut.fi>
To: "Linux-Activists" <linux-activists@Niksula.hut.fi>
Reply-To: "Linux-Activists" <linux-activists@Niksula.hut.fi>
X-Note1: Remember to put 'X-Mn-Key: DOC' to your mail body or header
Subject: Linux-Activists - DOC Channel digest. 94-10-2-23:37
X-Mn-Key: DOC
Sender: owner-linux-activists@Niksula.hut.fi
Message-Id: <94Nov3.020436eet.55754-1@niksula.hut.fi>
Date: Thu, 3 Nov 1994 02:04:28 +0200
Content-Length: 1226
Status: RO
X-Status: 


Topics:
	 Re: printing manpages in lj format


----------------------------------------------------------------------

From: quinlan@yggdrasil.com (Daniel Quinlan)
Subject: Re: printing manpages in lj format
Date: Wed, 2 Nov 94 10:15 PST


Hirac Kasapoglu <hirac@topkapi.cc.itu.edu.tr> writes:

> My problem is: I want to convert manpages from ps to lj format. I
> use this script to do that.
>
> gs -sDEVICE=laserjet -sOutputFile=$1.lj -sPAPERSIZE=a4 -dNOPAUSE -q $1.ps
>
> It is ok. It works but I have to enter quit command or press ctrl-D
> key to quit the GS prompt. I can do it for several times. But it is
> very hard to it for several thousand times. Because I want to do it
> for all man pages. How can I force GS to quit immediatly after
> finishing its job.

I can't say I know why gs exhibits the above braindead behavior, but
redirecting stdin works fine.

	gs blah blah blah < /dev/null

Alternatively, ftp to jclark.com:/pub/test and get groff-lj4.tar.gz.
It, when untarred over the standard groff-1.09 source, lets you output
LaserJet directly from groff.

It also looks a great deal better than the GhostScript equivalent.

- Dan


------------------------------

End of DOC Digest
*****************
-------
