HylaFAX The world's most advanced open source fax server |
-----Original Message-----Hi
From: hylafax-users-bounce@xxxxxxxxxxx [mailto:hylafax-users-bounce@xxxxxxxxxxx]On Behalf Of Jon Farmer
Sent: Tuesday, October 21, 2008 10:50 AM
To: hylafax-users@xxxxxxxxxxx
Subject: [hylafax-users] faxrcvd script
I am trying to replace the faxrcvd script with a very simple script
written in PHP.If I call the PHP script from the commandline with the arguments
passed by the fax server reported in syslog then it works. However
when a fax is received even though syslog reports its called the
script nothing happens.Here is the line from the syslog
Oct 21 12:54:07 ivr FaxGetty[28048]: RECV FAX: bin/faxrcvd "recvq/
fax000000005.tif" "ttyIAX" "000000040" "" "1952291631" "<NONE>"
"<NONE>" "431912"Here is the PHP faxrcvd script
#!/usr/bin/php -q
<?
exec("/bin/echo \"test\" | /usr/bin/mutt -a /var/spool/hylafax/" .
$argv[1] . " -s \"Fax Recevied\" em...@domain.com");
?>Any ideas anyone?
Thanks
Jon
The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you.