Posted by on | | 0 意見
hylafax param
=========================================
/etc/inittab

m0:2345:respawn:/usr/local/sbin/faxgetty ttyS0
m1:2345:respawn:/usr/local/sbin/faxgetty ttyS4
m2:2345:respawn:/usr/local/sbin/faxgetty ttyS5
m3:2345:respawn:/usr/local/sbin/faxgetty ttyS6
m4:2345:respawn:/usr/local/sbin/faxgetty ttyS7
m5:2345:respawn:/usr/local/sbin/faxgetty ttyS9


=========================================
/etc/crontab

0 0 1 * * /usr/local/sbin/faxqclean
0 18 * * * /usr/local/sbin/faxcron | mail -s "Hylafax Usage Report" root
*/5 * * * * uucp /var/spool/hylafax/bin/ps2tiff_docq

=========================================
/var/spool/hylafax/bin/ps2tiff_docq

#!/bin/sh
DOCQ=/var/spool/hylafax/docq
DOCQ_BAK=/var/spool/hylafax/docq_bak

for files in `ls $DOCQ/*.ps`
do
base=`basename $files .ps`
if [ ! -e $DOCQ/$base.tiff ];then
echo "" 2>&1 >> $DOCQ/convert.log
echo $files " --> " $base 2>&1 >> $DOCQ/convert.log
ps2pdf $files $DOCQ/$base.pdf 2>&1 >> $DOCQ/convert.log
convert $DOCQ/$base.pdf $DOCQ/$base.tiff 2>&1 >> $DOCQ/convert.log
rm -f $DOCQ/$base.pdf
mv $DOCQ/$base.ps $DOCQ_BAK
sleep 30s
fi
done


=======================================================
fax2print
1. setup cups
2. add into /var/spool/hylafax/bin/faxrcvd
lpr $1 -o natural-scaling=95 -o media=A4

TIFF/Class F is the format in which HylaFAX stores received facsimile. There is documentation on the faxrcvd script invoked by the fax server for each received facsimile. To print each received fax just modify the script according to your local needs. For example, you might use fax2ps (in the HylaFAX distribution) piped to ghostscript with the Laserjet driver.
/usr/local/bin/fax2ps $1 | gs -q -sDEVICE=ljet3 -dNOPAUSE -sOutputFile=- | lp

Another useful program to use when printing TIFF images is the tiff2ps program that is included in the TIFF software distribution.

If you are using cups-printing system, you may need to use:

lpr $1 -o natural-scaling=95 -o media=A4



Posted by on | | 0 意見
請問有沒有好用的架設Blog server的軟體


CMS(content management systems:內容管理系統) - Blogs:
b2evolution
bBlog
Nucleus
pLog
pMachine Free
Serendipity
Textpattern
WordPress

for more information;see
http://www.opensourcecms.com/
Posted by on | | 0 意見
telnet 127.0.0.1 80
GET /wdp1/WebForm3.aspx HTTP/1.0


===================================
用終端機和web server 打交道