HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] FaxDispatch: Print some faxes on a network printer



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 30.06.2010 14:24, schrieb Sebastian Mayer:

> Is it possible to print the incoming faxes only for Dep3 on a network printer? Additional to the current configuration?
> Which lines do I have to add to the FaxDispatch to reach my goal?

Hello Sebastian,

depending on your printing system you might be able to print the .tif files directly. Use something like this

TEMPLATE=/de/
FOLDER="/var/spool/hylafax/recvq/"
FULLPATH="${FOLDER}${FILENAME}.tif"
case "$SENDER" in
# Dep1
*11112222)
  mv $FULLPATH /var/spool/hylafax/recvq/2222-Dep1/;;
# Dep2
*33334444)
  mv $FULLPATH /var/spool/hylafax/recvq/4444-Dep2/;;
# Dep3
*55556666)
  lpr -P printername $FULLPATH
  mv $FULLPATH /var/spool/hylafax/recvq/6666-Dep3/;;
esac

If necessary you can convert the file to PS or PDF for printing. (For an example see the faxrcvd script. HylaFAX can convert the documents if you want to receive them by e-mail.)

BTW: You used "case" to simulate "if".


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwrQlUACgkQnMz9fgzDSqc2kwCfWkfMgJXgjbu1aXmYtsZeGmb4
v6QAoImt2haOQH3XleMIimRMwZ9aFuim
=Zv5a
-----END PGP SIGNATURE-----


____________________ 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*




Project hosted by iFAX Solutions