On Tue Sep 07 1999 at 12:11, David Fox wrote:

> Folks frequently want to print their faxes, so this patch adds a
> print command to the viewfax command:
> 
> diff -ru viewfax-2.4/viewfax.c~ viewfax-2.4/viewfax.c
> --- viewfax-2.4/viewfax.c~    Wed Nov 13 13:46:44 1996
> +++ viewfax-2.4/viewfax.c     Sat Dec  5 13:50:22 1998

> +                  sprintf(cmd, "tiffsplit %s /tmp/viewfax$$; "
> +                               "tiff2ps /tmp/viewfax$$* | lpr; "

Hmm... what if I want to filter it first, eg, through mpage for 2-up
or similar?  Or use an alternative printer rather than the default one
in /etc/printcap?

Wouldn't it be better have a say in what printer program is used for
the actual printing buy using, for example, an environment variable?

> +                               "rm -f /tmp/viewfax$$*", thispage->pathname);
> +                  system(cmd);}

Otherwise, good call :)

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>           <[EMAIL PROTECTED]>
  Computer Systems Officer                       Faculty of Science
  University of Southern Queensland, Toowoomba Oueensland Australia
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to