KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/doc/mgetty-1.1.33/samples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/mgetty-1.1.33/samples/new_fax.lj
#!/bin/sh
#
#From: klaus@snarc.greenie.muc.de (Klaus Weidner)
#Subject: new_fax fuer lj
#To: gert@greenie.muc.de (Gert Doering)
#Date: Thu, 10 Mar 1994 09:49:16 +0100 (MET)
#
# sample script to auto-print incoming faxes on a HP laserjet
# (FAX_NOTIFY_PROGRAM in policy.h)
#

# make sure $PATH includes the pbm tools!
PATH=/usr/bin:/bin:/usr/local/bin

HUP="$1"
SENDER="$2"
PAGES="$3"

G3TOPBM=/usr/local/bin/g32pbm
shift 3
P=1

while [ $P -le $PAGES ]
do
	FAX=$1
	RES=`basename $FAX | sed 's/.\(.\).*/\1/'`

	if [ "$RES" = "n" ]
	then
		STRETCH="-s"
	else
		STRETCH=""
	fi

	$G3TOPBM $STRETCH $FAX \
	| pnmscale -xysize 2479 3508 \
	| pgmtopbm -fs \
	| pbmtolj -resolution 300 \
	| lpr

	shift
	P=`expr $P + 1`
done

exit 0
#-- 
#\ klaus@snarc.greenie.muc.de--kweidner@physik.tu-muenchen.de--2:246/55.4
#\ .signature error -- quote dumped


Anon7 - 2021