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] faxrcvd customization.



Marco Meli wrote:
Hi All,



I would ask you what I have to change in “/bin/faxrcvd.custom” if I want that fax already forwarded to the users because compliant with “FaxDispatch” rules are not sent to a repository dir /fax.



if [ -f etc/FaxDispatch ]; then

. etc/FaxDispatch # NB: FaxDispatch sets SENDTO

Fi



if [ -f $FILE ]; then

MYPATH=/fax/

cp $FILE $MYPATH/${MYFILENAME}.tif

chmod 777 $MYPATH/${MYFILENAME}.tif

fi

This will not work because your MYPATH is outside of the hylafax directory structure. Hylafax can only write to directories inside /var/spool/hylafax (or where ever your distro uses). If you want to move files outside of that area, you could do so with a cron script. Hylafax cannot do this directly for for security reasons.


Darrick
--
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com

____________________ 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