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] Ubuntufax



Well, FaxDispatch doesn't seem to be calling my script .. so I will
try something else.

As for the samba share, it seems that the received fax's file
attributes are not changed until the file is complete, so no need to
worry about grabbing an incomplete file.

But since the faxserver may be remote from the database, I will likely
use ftp instead to grab the incoming faxes.

On 1/25/07, A J Stiles <hylafax_resp@xxxxxxxxxxxxxxx> wrote:
On Wednesday 24 January 2007 21:55, Graham Chiu wrote:
Why not use your FaxDispatch script to  (call up a simple Perl / Python / PHP
script to)  write the files straight into the database, instead of depositing
them in a Samba share and expecting Windows to deal with them?  All you will
need is the appropriate client library bindings for your favourite scripting
language to talk to your database.

This way as well, you avoid the potential for corruption which exists if the
Windows end tries to recover a file which hasn't finished being written yet.
(Unix creates a directory entry as soon as the file is opened for writing,
and any other process with "r" on the file and "x" on the directory can see
the file from then on.  Otherwise, `tail -f`would never be able to work!  If
you copy a big file, you can actually watch its size increasing by repeatedly
typing `ls -l` in another terminal.)  If you still insist to do it
arse-backwards, have the Windows end stat the file several times, a few
seconds apart, to make sure it isn't still growing before retrieving it.

--
AJS

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




--
Dr Graham Chiu
http://www.synapsedirect.com
Synapse-EMR - innovative electronic medical records system

____________________ 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