Welcome to Crakomili software



Choose language





Crakomili Software
Tailored For your needs
Please wait..
Chat Offline
free support chat
convert G3


Convert G3: # READ THIS FIRST !!!! # =============== # INSTALL nail # u must make 2 directories at /var/spool/fax: faxes, # sent,(incoming-exsistes): # u can deselect ONLY for the first time the following 4 lines: # /bin/mkdir /var/spool/fax/faxes # /bin/mkdir /var/spool/fax/sent # touch /etc/mgetty+sendfax/new_fax # chmod 777 /etc/mgetty+sendfax/new_fax # Watch out who r the reciepients! # at sent r all faxes that been mailed in pbm format, # clean it once in a while! # checking if a fax is being recieved.. : ls /var/lock > /root/if_LCK_here if grep LCK..ttyS0 /root/if_LCK_here > /dev/null then #echo "better not convert" |mail -s "LCK is here" help sleep 0 else #echo "better not convert" |mail -s "LCK is NOT here" help for i in /var/spool/fax/incoming/* #if the dir is empty the loop makes 1 buged *.pbm ! #changes the g3 tp pbm format at incoming #there r 2 formats in incoming: regular and .pbm do 2>/dev/null g3topbm $i > $i.pbm 2>/dev/null sleep 1 done #take th pbm format and put it at faxes directory #remove ONLY the *.pbm buged file without the good *.pbms : rm -f /var/spool/fax/incoming/"*.pbm" 2>/dev/null mv /var/spool/fax/incoming/*.pbm /var/spool/fax/faxes 2>/dev/null sleep 1 rm -Rf /var/spool/fax/incoming/* 2>/dev/null sleep 1 #send all pbm faxes to the mail and moves them to send directory for i in /var/spool/fax/faxes/* do 2>/dev/null echo "open it with irfan-view" | /usr/local/bin/nail -s "New fax.." -a $i help@ros.co.il 2>/dev/null done sleep 1 mv /var/spool/fax/faxes/* /var/spool/fax/sent 2>/dev/null fi



Post a Comment
your name:
Write code here  

     © crakomili software, all rights reserved © 2007