[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: efax printing PS code..?



efax expects the first two characters to be '%!' which is quite reasonable. However,
many evil machines like to put '\004%!' as the first characters (the first one is an
'EOF' mark, like our friend Ctrl-D generates). This really should be a bug against
efax since this is so common. You can inspect the file yourself to be sure. Here's a
context diff indicating the fix to /usr/bin/fax:

*** /usr/bin/fax~ Mon Mar 17 11:12:55 1997
--- /usr/bin/fax Thu Jul 16 18:52:16 1998
***************
*** 693,699 ****

   read x <$1
   case $x in
!  %!*) echo "$1 is postscript..."
    # GS can't deal with long paths so we 'cd'
    DIRNAME=`dirname $1` ; BASENAME=`basename $1`
    ( cd $DIRNAME ; \
--- 693,699 ----

   read x <$1
   case $x in
!  %!*|?%!*) echo "$1 is postscript..."
    # GS can't deal with long paths so we 'cd'
    DIRNAME=`dirname $1` ; BASENAME=`basename $1`
    ( cd $DIRNAME ; \


Jay Barbee wrote:

> I seem to have a problem with my Postscript output (saved from MS Word) that I
> am tring to fax via efax!  Quite simply it prints the postscript code.
>
> I look at the *.ps files with ghostscript and it looks fine.  I use ghostview
> and it views just fine.  If I use efax's "view" option or if I try to print
> via efix, I get ps code?  What is it that it wants from me.  I cannot make the
> postscript files with 'fax make fax.ps'... it will make a 2 page postscript
> file baloon into 19 pages of postscript code.
>
> Any ideas
> --Jay Barbee
>
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null



--
Jens B. Jorgensen
jjorgens@bdsinc.com



--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: