Hylafax Mailing List Archives

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

[hylafax-users] R: faxrcvd customization.



This work fine instead, the problem is another, if received fax are
processed by FaxDispatch rules I have to skip the last piece code,
practically If I already sent the fax to the user I don't want copy (cp) it
in the /fax dir, it's rather a script procedure problem ... 

-----Messaggio originale-----
Da: Darrick Hartman [mailto:dhartman@xxxxxxxxxxxxxxxx] 
Inviato: lunedì 10 aprile 2006 15.40
A: Marco Meli
Cc: hylafax-users@xxxxxxxxxxx
Oggetto: 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*



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