Hylafax Mailing List Archives

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

[hylafax-users] Fwd:Re:printing faxes automatically to a win




This is how I have solved the printing to a PCL networked printer.  If you
change the last part to use 'smbprint' instead or 'lpr' it should work.
I used to use 'nprint' for novell printers instead of 'lpr'.

************************Start fax2pcl_script*********************************
#!/bin/sh
# Set the PRINTER var to a "gs" device.
# Try gs -h for a list of drivers
# You must have nenscript installed to run this.

# PRINTER=djet500
PRINTER=ljet4
fax2ps -S -W 8 -H 10.5 $1 | gs -q -sDEVICE=$PRINTER \
                -sPAPERSIZE=letter -dNOPAUSE \
                -dSAFER -sOutputFile=- - \
                | lpr -P$2 -
************************Stop fax2pcl_script*********************************

The next thing is to add some logic in 'faxrcvd':

Lines added to 'faxrcvd'
************************Start faxrcvd*********************************
PRINT_SCRIPT=/var/spool/lpd/fax2pcl_script
PRINT_S0=mecopier
PRINT_S1=mecopier
PRINT_S2=mecopier
PRINT_S3=mecopier
HYLAFAXDIR=/var/spool/hylafax

# These line I added after "    ) | 2>&1 $SENDMAIL -ffax -oi $TOADDR"
# Print file to specified printer.
    if [ "$DEVICE" = "ttyS0" ]; then
      $PRINT_SCRIPT $HYLAFAXDIR/$FILE $PRINT_S0 &
    elif [ "$DEVICE" = "ttyS1" ]; then
      $PRINT_SCRIPT $HYLAFAXDIR/$FILE $PRINT_S1 &
    elif [ "$DEVICE" = "ttyS2" ]; then
      $PRINT_SCRIPT $HYLAFAXDIR/$FILE $PRINT_S2 &
    elif [ "$DEVICE" = "ttyS4" ]; then
      $PRINT_SCRIPT $HYLAFAXDIR/$FILE $PRINT_S3 &
    fi

************************Stop faxrcvd*********************************

-Brian

____________________Reply Separator____________________
Subject:    [hylafax-users] printing faxes automatically to a windows pr
Author: Yan Seiner <yan@cardinalengineering.com> 
Date:       8/23/2001 12:49 PM

I realize this is probably more of a windows/samba question - but I'be 
been asked to see if I could print faxes automatically to a printer 
attached to a windows machine.  The machine in question will most likely 
be a windows 9x box.

Any ideas on where to start?

All my printing is done the other way - from windows boxes to linux 
server....

Thanks,

--Yan

-- 
            __      __
           | /      /
            /------/
        -- / \    / \ --
      /   /\  \  /  /\   \
     |   /  |  \/--|--    |
      \    /        \    /
        ~~            ~~

"The older I get, the faster I was."





____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null






____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



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