mgetty --> Web-Page

Holger Petersen (hp@kbbs.org)
Tue, 22 Sep 1998 21:11:56 +0200



There was a discussion about getting incoming FAXes into a Web-Page.
Gert said, that he was awaiting some Java-Code...

I thought about the following solution:

1) create some subdirectory like ~/public_html/fax

2) put a .htaccess - file into it to let no other people see your faxes :-)

3) take " /usr/lib/mgetty+sendfax/new_fax and add some lines into
   it's while-loop:

==================================>

# add one variables:

PPMtoGIF=/usr/bin/ppmtogif

# ...............

   while [ $P -le $PAGES ]
   do

#   ...

# ------ convert to a GIF-File ----------->

FILENAME=`date +"%s"`
DIR=/home/yourname/public_html/fax/
ZIEL=$DIR/$FILENAME.gif
#
#
		$G3TOPBM $STRETCH $FAX	2>/dev/null \
		| $PPMtoGIF		2>/dev/null \
		> $ZIEL

# <------ end GIF-Patch --------------------

	shift
	P=`expr $P + 1`
done

<=============================

After this change, you can do " http://localhost/~yourname/fax "
and get a listing of all Faxes. One may then click on anyone...

What's wrong with this way?

Yes, those images are _large_.

Yes, it might be useful to have a small program (cgi-bin ?) that
puts some nice wrapper around that directory.

Yours, Holger