passing memo text to faxspool/faxmemo/make.coverpg

Gert Doering (gert@greenie.muc.de)
Sun, 21 Feb 1999 19:15:20 +0100


Hi,

On Thu, Feb 18, 1999 at 01:12:42PM -0500, Thomas Porter wrote:
> I use Lyx to create documents in TeX and PS.  It has a fax function where one
> can specify the recipient, telephone number, and some comments to be added to a
> cover page.  These are passed to a fax command specified in the Lyx rc file.
> 
> The problem is that the comments data is passed as a command line string, not
> passed in a file as faxspool/faxmemo/make.coverpg expect.
> 
> Is does anyone have any patches to these scripts to allow the memo to be passed
> as a string as opposed to a file name?

Sounds like you need to write a "wrapper script" that will write all stuff
on the command line / stdin to a temporary file, and then call faxmemo
with that.

> I am having a hard time figuring out which script would be the best one to
> modify to do this.

make.coverpg is not really suited to be called from a user or from LyX (it
will not create a fax job, just the cover page).  Normally, make.coverpg
is called from faxspool.

faxspool is the standard tool to use, which will do all the work.

faxmemo is just a very simple shell script that calls faxspool with the
right arguments to use a coverpage with text on it - look into it, and
make your "faxmemo.lyx" script similar to it.  Save the memo text into a
file, and call faxspool like this:

 faxspool -C "/path/to/coverpg -m /path/to/memo_file" <fax-nr> <dvi/ps-file>

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de