Hylafax Mailing List Archives

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

Re: Writing a client



Brian Walters wrote:
    
    Can some one share a little more light on the hfaxd system. I've read all 
    the man pages and README's I could find. I've managed to get spool 
    information and kill jobs using the ftp style interface to HylaFAX. What 
    I haven't figured out is how to upload a job into the que. Currently I'm 
    doing this with Samba and Sendfax and controling it with an FTP ocx but 
    I'd really appreciate anyone sharing info on how I could transfer the job 
    up and put it into the spooler to be processed. Samba is great but it 
    does take a lot of extra over head I would like to get rid of. Ftpd has 
    an option that allows you to log all the commands sent to it by a user. 
    I've used this at times when trouble shooting other transfer problems. 
    Does hfaxd have a similar feature that I've missed??

To upload a job into the queue you have to speak the new protocol
to the hfaxd(1M) daemon. There is only a little bit documentation
about it in the man page of hfaxd(1M) but you could also use the
"-vv" flag for the client sendfax(1) to get examples how to submit
jobs. Attached below is the output of:

$ sendfax -vv -d XXXXXXXX /tmp/ps

	matthias

Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.
220 kant server (HylaFAX (tm) Version 4.0pl0) ready.
-> USER guru
230 User guru logged in.
-> TZONE LOCAL
200 Using time values in MET.
			<...output of dialrules deleted ....>
-> TYPE I
200 Type set to Image.
SEND compressed data, 4088 bytes
-> PORT 127,0,0,1,6,208
200 PORT command successful.
-> MODE Z
200 Mode set to ZIP.
-> STOT
150 FILE: /tmp/doc1510.ps (Opening new data connection).
SEND 1310 bytes transmitted (3.1x compression)
226 Transfer complete (FILE: /tmp/doc1510.ps).
-> JNEW
200 New job created: jobid: 1040 groupid: 1040.
-> JPARM FROMUSER "Matthias Apitz"
213 FROMUSER set to "Matthias Apitz".
-> JPARM LASTTIME 000259
213 LASTTIME set to 000259.
-> JPARM MAXDIALS 12
213 MAXDIALS set to 12.
-> JPARM MAXTRIES 3
213 MAXTRIES set to 3.
-> JPARM SCHEDPRI 127
213 SCHEDPRI set to 127.
-> JPARM DIALSTRING "XXXXXXXX"
213 DIALSTRING set to "XXXXXXXX".
-> JPARM NOTIFYADDR "guru@kant"
213 NOTIFYADDR set to "guru@kant".
-> JPARM VRES 196
213 VRES set to 196.
-> JPARM PAGEWIDTH 209
213 PAGEWIDTH set to 209.
-> JPARM PAGELENGTH 296
213 PAGELENGTH set to 296.
-> JPARM NOTIFY "none"
213 NOTIFY set to "none".
-> JPARM PAGECHOP "default"
213 PAGECHOP set to "default".
-> JPARM CHOPTHRESHOLD 3
213 CHOPTHRESHOLD set to 3.
-> JPARM DOCUMENT /tmp/doc1510.ps
200 Added document /tmp/doc1510.ps as docq/doc1510.ps.1040.
-> JSUBM
200 Job 1040 submitted.
request id is 1040 (group id 1040) for host localhost (1 file)



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