print on receive

Eli Marmor (marmor@elmar.co.il)
Tue, 18 May 1999 18:16:53 +0300


John Huntjens wrote:
> 
> Can anyone provide me with a hint how to make mgetty after receivig a fax
> print it automaticly ?
> A script to so would be nice (or a url)

Look for a script called "new_fax" (under my machine its full path
is "/usr/lib/mgetty+sendfax/new_fax").

An example for its contents:

#!/bin/sh
PAGES="$3"
shift 3
P=1
while [ $P -le $PAGES ]
do
        g32pbm $1 | pbmtolps -dpi 225 | lpr
        shift
        P=`expr $P + 1`
done

-- 
Eli Marmor
***************************************************************
 *   ___ _  __ ___  __    _ |__ _ _    marmor@elmar.co.il      *
  *     | | | \   | | \    |  / |\/     El-Mar Software Ltd.    *
   *    | | | _)  | | _)     /  | \      Tel.: 972-50-237338     *
    *    ___________________________      Fax: 972-9-766-1314     *
     *   \_________________________ \      http://www.elmar.co.il  *
      *    _________  __  ____     \ \____  __    _                 *
       *   \_______ \ \_\|  _ \  __ \____ \ \ \  | |                 *
        *          \ \   | | \ \ \_\     \ \ \ \ | |                *
         *          \ \  | | _\ \         ) ) \ \ \_\_             *
          *          \ \ |_| \___)       (_/   \_\  \_\           *
           *          \ \_______________________________         *
            *          \________________________________\       *
             *                                                 *
              *************************************************