PBM files and WIN95

Marc SCHAEFER (schaefer@alphanet.ch)
27 Jul 1999 1908:02:20 +0200


Pat Grogan <pgrogan@canrsg.telstra.com.au> wrote:
> This is a multi-part message in MIME format.

And this is not very nice.

> Now I am having problems reading the files on my win98 machine. I
> downloaded a package called infraview32 to attempt to view the files. I
> get a message "Can't read file header Unsupported file type!".

It's normal. PBM is a UNIX format.

Try this script:

#! /bin/sh

HANGUP_CODE=$1
SENDER_ID="$2"
NPAGES="$3"

PBM_UTILS=/usr/X11R6/bin/

umask 77

shift;shift;shift

NUMBER=1

for i
do
(echo "Subject: fax from $SENDER_ID [$NUMBER/$NPAGES]"
 echo ""
 echo "Fax from $SENDER_ID with $NPAGES pages, this is page $NUMBER"
 echo "which has name $i."
 echo ""
 echo "Environment:"
 env
 echo ""

 $PBM_UTILS/g3topbm $i | $PBM_UTILS/pnmscale -xscale .5 | $PBM_UTILS/ppmtogif | uuencode a_fax.gif) | mail faxadm
 NUMBER=`expr $NUMBER + 1`
done