HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Issue with FaxAccounting



Hi,

I have been trying to customize FaxAccounting script for our need. For
this I have written it in python.

But the problem is, it just doesnt run if its a python script. I can
run the same manually (./FaxAccounting)

Just to test, I wrote the following code, but it does not run. Can
anyone please give an hint on what might be the issue.
I have just tried to write whatever is passed on to the script into a
file. Again it can log whatever arguments I pass manually.
The script is in /var/spool/hylafax/etc and has executable attribute.

Code:
#!/usr/bin/env python

import sys

argstring = ''.join(sys.argv[1:])
logf = open('/var/spool/hylafax/log/faxlog.log', 'a')
logf = write(argstring)
logf.close()

Thanks in advance
Deepak


____________________ 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