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
On Wednesday 24 January 2007 21:55, Graham Chiu wrote:
> I need access to received file queue from the windows side so that I
> can inject the files into a database.
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*