HylaFAX The world's most advanced open source fax server

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

Faxprinter in Linux



I am trying to run sendfax as part of a input filter (printcap
entry if) and
using printcap entry af to pass on some parameters to the filter.
This 
works fine for other filtering but it does not work for sendfax.

I get "Error creating cover sheet".

If I disable cover sheet generation it works fine. If I run
faxcover alone in the same filter with identical parameters, a
cover sheet postscript file is generated as expected.

The problem apparently only occurs when sendfax starts faxcover
in the context
of lpd. Why it fails is beyond me.


Here is some output:

/usr/local/bin/sendfax -m -vv -f tg -r Kundorder -h tor -d
Pelle@425351 postscript/fax_0000.ps
Trying tor (192.168.0.4) at port 4559...
Connected to tor.ed.se.
220 tor.ed.se server (HylaFAX (tm) Version 4.0pl2) ready.
-> USER bin
230 User bin logged in.
match against (..., 512)
rule: offset 0 string = "%!" -- success (result postscript, rule
"")
Apply DisplayNumber rules to "425351"
--> return result "425351"
COVER SHEET "/usr/local/bin/faxcover -f 'tg' -n '425351' -s 'a4'
-t 'Pelle' -x 'Elektrondata AB' -p '2'"
Error creating cover sheet; command was "/usr/local/bin/faxcover
-f 'tg' -n '425351' -s 'a4' -t 'Pelle' -x 'Elektrondata AB' -p
'2'"; exit status 0


Excerpt from util/SendFaxClient.c++:
   250                  int status;
   251                  if (Sys::waitpid(pid, status) == pid &&
status == 0) {
   252                      file = tmpFile;
   253                      return (TRUE);
   254                  }
   255                  emsg = fxStr::format("Error creating
cover sheet; "
   256                      "command was \"%s\"; exit status %x"
   257                      , (const char*) joinargs(coverCmd,
av)
   258                      , status
   259                  );

Unfortunately I know next to nothing of c++. Just a thought
though ... exit status is reported as 0 ... but it still fails!
Did it wait for another
process instead?

Anyone?

-- 
Torbjörn Gard             Linux :-)        Tel +46 31 12 53 82
Elektrondata AB                            Fax +46 31 42 53 51
Järntorget 2              mailto:torbjorn.gard@elektrondata.se
S-413 04 Göteborg Sweden           http://www.elektrondata.se/




Project hosted by iFAX Solutions