I would like to be able to associate an identifier when I submit a fax to Hylafax so this is displayed in the log file /var/spool/fax/etc/xferfaxlog
And faxstat.
In faxsend there is the i parameter
−i identifier Use the identifier string in any notification messages instead of the usual job identifier number.
This option is useful for applications that cross reference notification messages against
job submissions.
However when I use this I see nothing in the log file or faxstat.
I came across this at
http://artfiles.org/hylafax.org/archive/html/2003-05/msg00471.html
I Use the -i option on the sendfax call like this
sendfax -n -N -i "myjobID" -d someone@12345678
myjob.ps
=============
Then...modify (in a RedHat installation) the /etc/hylafax/hfaxd.conf file
to include the "identifier" string
For example:
(in hfaxd.conf)
# The default format used to return job status queries.
# Note that clients can override this with JOBFMT.
#
#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"
# Modified Line below
JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"
# ====
This will allow you to see the specified job identifier in faxstat...
I modified /usr/share/fax/hfaxd.conf to contain
# The default format used to return job status queries.
# Note that clients can override this with JOBFMT.
#
#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"
JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"
This does not affect either the log file or faxtstat
I also created a .hylarc file for my login account, containing
# The default format used to return job status queries.
# Note that clients can override this with JOBFMT.
#
#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"
# Modified Line below
JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"
When I submit a fax using
sendfax -n -f
PathCentreU...@health.wa.gov.au -d 0893811704 -i "peters test" ./
peter.ps
then use
faxtstat –s
[he00273@Li001CRMPC he00273]$ faxstat -s
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyS0 (555.1234): Running and idle
Modem ttyS1 (555.1212): Waiting for modem to come ready
JobTag JID Prio S Owner DialString Pages Dials TTS Status
8196 127 R root 0:4 0:9
8197 127 W root 0:0 0:9
8200 127 W he0027 0893811704 0:0 0:9
8198 127 W root 0:0 0:9
8199 127 W root 0:0 0:9
[he00273@Li001CRMPC he00273]$
I see nothing for JobTag
Possibly my version of Hylafax does not support this option.
or more probably I am doing something wrong.
I tried to get the version of Hylafax but the –i option for faxstat does not give me this information
−i Display additional status information for the server. This status typically has information such
as the HylaFAX version, the physical location of the server machine, and an administrative contact
for the server.
From the skimpy documentation from those who set up Hylafax, it is version 3.0pl1.
I don’t have any installation files for Hylafax (or even Linux for this server).
So I cannot refer to this for any information.
Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone :
+618 6396 4285
Mobile: 0423 540 825
E-Mail :
peter...@iinet.net.au;
peter....@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are intended solely for the named recipient's), may be confidential, and may be privileged or otherwise protected from disclosure in the public interest. The use, reproduction, disclosure or distribution of the contents of this e-mail transmission by any person other than the named recipient(s) is prohibited. If you are not a named recipient please notify the sender immediately.