Discussion:
Auto fax
(too old to reply)
Denster1964
2016-12-15 23:37:17 UTC
Permalink
I would like to save pdf files to a directory and the have them fax automatically to a number. I have used the following script to accomplished autoprint for pdf's in the past:

#!/bin/sh
fname="$1"

# Assuming that you only want to print pdf files, check it is a pdf
# otherwise do nothing
if [ $(file -b --mime-type "$fname") != "application/pdf" ] ; then
exit 0
fi

lpr -P printera "$fname"
lpr -P printerb "$fname"

How would I change this script to accomplished auto faxing?
Brian Herman
2021-04-01 13:12:43 UTC
Permalink
Post by Denster1964
#!/bin/sh
fname="$1"
# Assuming that you only want to print pdf files, check it is a pdf
# otherwise do nothing
if [ $(file -b --mime-type "$fname") != "application/pdf" ] ; then
exit 0
fi
lpr -P printera "$fname"
lpr -P printerb "$fname"
How would I change this script to accomplished auto faxing?
https://legacy.hylafax.org/man/6.0.5/sendfax.1.html

Loading...