problem with pstopnm/faxspool with ps
Gert Doering (gert@greenie.muc.de)
Wed, 30 Jun 1999 15:41:33 +0200
Hi,
On Wed, Jun 30, 1999 at 09:23:02AM -0500, Sonny Baillargeon wrote:
> ok here it is...
>
> faxspool
>
> + FAX_SPOOL=/var/spool/fax
Hmmm. I'm not sure why you run it with "set -x", but it doesn't hurt.
[..]
> + echo -e hosts.ps is format: ps
> hosts.ps is format: ps
The file format is recognized...
> + cat hosts.ps
> +
> gs -sDEVICE=faxg3 -r204x196 -sOutputFile=/var/spool/fax/outgoing/F000014/i-0
> 001-%03d -dNOPAUSE -q -dSAFER -
... ghostscript is called, and doesn't complain...
> + echo -e \nnothing to do (no cover page, no data).
>
> nothing to do (no cover page, no data).
... but no output files are created.
Looks to me like "hosts.ps" is an EPS file, not plain postscript - EPS
doesn't contain a "showpage" command, and thus can't be faxed or printed.
[..]
> if ( hosts.ps =~ ) eval usage
> if ( ! -f hosts.ps ) then
> set bb = `grep "%%BoundingBox" $psfile`
> grep %%BoundingBox hosts.ps
I'm not really sure what this does, but it looks like "find out whether
this is an EPS file" (and it seems to be).
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de