HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Sending both PS piped to sendfax as well as a separate file



Thank you.  I didn't know if there was a way to pipe or redirect and not
save a temporary file.  Your solution works great.

-----Original Message-----
From: Lee Howard [mailto:faxguy@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, December 22, 2010 10:37 PM
To: Michael Reed
Cc: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] Sending both PS piped to sendfax as well as a
separate file

Michael Reed wrote:
>
> I would to create an on-the-fly PostScript cover letter from some HTML 
> and append a separate PDF file.  The following almost works:
>
>  
>
> echo "<html><body><h1>Heading</h1><p>Some HTML output which makes up 
> my cover letter...</p></body></html>" |
>
> htmldoc --format ps3 --bodyfont Helvetica --header ... --footer ... 
> --webpage - |
>
> sendfax -n -m -f "John Doe" -d "555-555-1212" somefile.pdf
>
>  
>
> If I do not include a separate file (ie. somefile.pdf), the HTML gets 
> faxed over as desired.  When I include it, however, only the separate 
> file gets transmitted.  How can I make both to be sent?
>

echo "<html><body><h1>Heading</h1><p>Some HTML output which makes up my 
cover letter...</p></body></html>" |

htmldoc --format ps3 --bodyfont Helvetica --header ... --footer ... 
--webpage -  > /tmp/tmpfile;

sendfax -n -m -f "John Doe" -d "555-555-1212" /tmp/tmpfile somefile.pdf;
rm -f /tmp/tmpfile

Thanks.

Lee.


____________________ 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