  Linux simple fax printer server mini-HOWTO (faxsrv-mini-HOWTO)

  Erez Strauss <erez@newplaces.com> <mailto:Erez Strauss

  <erez@newplaces.com>>

  v1.0, 8 November 1997



--------------------------------------------------

Translated by Ilgiz Kalmetev (2:5011/36.6@fidonet)

--------------------------------------------------



   .   .    

        -   

    .       

   .



  1.  



     /   linux    

     .



           .

  The efax will find the fax number from the print Job number

  and will send the fax.  The efax software was written be Ed Casas

  <edc@cce.com>.



       -.



  2.    



  2.1.    - ?



  -  -     : efax  -,

     ,       , 

      .



  2.2.     ?



    efax   -     

   .        ,   

     mini-HOWTO,     

  <erez@newplaces.com>.         ,   

       :



  2.2.1.   efax



  ,      efax.



   RPM-    'rpm -qv efax'.



       efax   tar.gz  sunsite:

  ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a.tar.gz

    rpm :

  ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0.8a-3.i386.rpm



  2.2.2.  The printcap entry.



    efax  :     printcap.



  :     /etc/printcap:



       fax:\

               :lp=/dev/null:\

               :sd=/var/spool/fax:\

               :if=/usr/bin/faxlpr:



  2.2.3.   fax



     fax  ,   .



  :



       ln /usr/bin/fax /usr/bin/faxlpr



  2.2.4.   /usr/bin/fax.



   /usr/bin/fax   :



    Fax Class   :



       CLASS=2.0



    FROM="   "



       NAME=" "



          

  , ,     :



       TELCVT='sed -e s/+972/0/ -e s/+/00/'  # 



        586,  cfile=...   

  :



       cfile=`/usr/bin/tail -1 lock`

       cfile=`cat $cfile`



      586,587     '-'  :



       0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;;

       *) echo "$l" | mail -s "fax to $num failed   " $user@$host ;;



  2.2.5.   /var/spool/fax.



    /var/spool/fax



       mkdir /var/spool/fax

       chmod 777 /var/spool/fax



  2.2.6.   lock.



   lock (/var/spool/fax/lock)     ,

    :



       touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock



  2.2.7.    /dev/modem.



   efax   /dev/modem     ,

       ,     

       major  minor,   /dev/cua? , 

  .      rw-rw-rw- ,    

    .



       ls -lL /dev/modem

       rm /dev/modem

       mknod /dev/modem c Mj Mi

       chmod 666 /dev/modem



  Mj  5  Mi  64  cua0, 65  cua1  .. , ( cua1):



       mknod /dev/modem c 5 65



  2.2.8.   /var/lock.



      /var/lock 



       chmod 1777 /var/lock



  2.3.    ,   ?



     fax-,   -P,   -J  

  .



       lpr:



        lpr -Pfax -J <-> [-]

        _ | lpr -Pfax -J <->



  2.4.     ,      ?



    -J.



  2.5.        Unixes   ?



       /etc/printcap   Linux , 

    ,  ....



       fax:\

               :sd=/var/spool/fax:\

               :mx#0:\

               :sh:\

               :rm=host.domain:\

               :rp=fax:



       /etc/hosts.lpd   -.



       .



  :



  ,  efax       

  ,   . (  ).



  2.6.   Caldera, LPRng



     LPRng     

  .



   Luca Montecchiani <m.luca@usa.net>,     

  .    /usr/bin/fax.    

   cfile=...   586,587



  # Modified to work also with the LPRng package

  # Luca Montecchiani (08/11/97 m.luca@usa.net)

  if [ !-z "$CONTROL_FILE" ]

      then

          cfile=`cat tail -1 lock`

          cfile=`cat $cfile`

      else

          cfile=$CONTROL_FILE

  fi



  3.   ,   .



            



       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.sgml

       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.html

       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.txt

       http://www.newplaces.com/linux/faxsrv/faxsrv-mini-HOWTO.info



      



       Erez Strauss

       erez@newplaces.com

       http://www.newplaces.com/linux/

       http://www.newplaces.com/

       Phone: +972 52 739737

       Fax:  +972 9 954 3034



