Hylafax Mailing List Archives

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

Re: [hylafax-users] Moving different lines to different folders.



My simple /var/spool/hylafax/etc/FaxDispatch script

#!/bin/bash
case "$DEVICE" in
ttyQ01ec) /usr/bin/tiff2ps -a $FILE | lpr -PLaserJet ; scp $FILE remoteuser@xxxxxxxxxxxxx:/var/spool/InFax/Box1 ;;
ttyQ01ed) /usr/bin/tiff2ps -a $FILE | lpr -PLaserJet ; scp $FILE remoteuser@xxxxxxxxxxxxx:/var/spool/InFax/Box2 ;;
esac


What this does is:

A fax comes in on Port "ttyQ01ec" and is Printed to a device called "LaserJet" followed by a copy to a remote machine at 10.100.10.200
into a specific folder (/var/spool/InFax/Box1) based on incoming port...


You may want to skip the printing, and also just cp or mv the file to someplace on the local machine...

-Jeff H.

At 06:32 PM 2/12/2005, Michael J. Pawlowsky wrote:
Would anyone have a bin/faxrcvd script that moves the faxes into specified directories depending on which line the fax came in on?

Thanks,
Mike



____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*

--------------------------------------
Jeff Herring / jeffh@xxxxxxxxx
Seacoast Laboratory Data Systems, Inc.
--------------------------------------



____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services