四、启动Hylafax
若要在启动的时候自动的运行Hylafax,在Mandrake中运行drakxservices命令,Red Hat中运行setup命令,接着手工运行下面的命令:
/etc/rc.d/init.d/hylafax start
如果进程列表(ps -e)中没有faxgetty,试试下面的命令:
/usr/sbin/faxgetty -D /dev/ttyS0
五、如何使用Hylafax
发送传真:
sendfax -n -d number file1 file2
检查结果:
faxstat -s (显示队列中等发送的传真)
faxstat -d (显示已发送的传真)
faxstat -r (显示接收的传真)
从队列中去除一个传真:
faxrm number_of_job
清除缓冲池:
faxqclean
显示统计结果:
faxcron
六、在网络中使用Hylafax
服务器的配置:
需要下载三个文件:
printfax.pl(perl script)
respond.zip(respond.exe的压强包)
smb_conf.add(要添加到/etc/smb.conf的模块)
将printfax.pl复制到/usr/bin/目录下,并做如下修改:
### Format of commandline
# $cmdlinefmt=mgetty;
$cmdlinefmt=hylafax;
### The faxspoolprogram
### for mgetty+sendfax:
# $faxspool = /usr/bin/faxspool;
### for hylafax:
$faxspool = /usr/bin/sendfax;
### Additional faxspool args (e.g. header, coverpage)
### empty:
@faxspool_args = qw(-n);
### for mgetty+sendfax with a special header:
# @faxspool_args = qw( -h /usr/local/etc/mgetty+sendfax/faxheader.smb);
### for hylafax with send email when job is done or requeued and use
### a4 sized paper:
# @faxspool_args = qw(-D -R -s a4);
注意:在修改前请检查printfax.pl的版本号,也许你下载的版本已经做了修改。
在/etc/smb.conf中添加smb_conf.add模块:
[Fax] comment = Fax Printer
public = yes
postscript = yes
print command = ( /usr/bin/printfax.pl %I %s %U %m; rm %s ) &
printable = yes
writable = no
path = /var/spool/samba
检查print命令,特别是windows2000下的打印命令。
重启Samba,/etc/rc.d/init.d/smb restart
客户端的配置:
下面是在WINDOWS95/98/NT/2000下典型的客户端配置。安装Respond.zip,其中包括config.exe和respond.exe:
1)将这两个文件复制到widows目录下,如c:windows。
2)在START->PROGRAMS->Start下做一个respond.exe的链接。
3)运行respond.exe或者重启计算机。
接着必须创建网络打印机:
1)点击START->printers->add
2)选择网络打印机
3)点击"browse"选择网络上的FAX打印机(Samba打印机)
4)选择HP->HP Laserjet 4/4m postscript的驱动程序
5)不要打印测试页
6)创建完打印机后,到START->Printers中点击FAX打印机的属性。
7)在属性对话框中点击detail及spooler按钮。
8)选中"Start printing after the last page"
客户端的安装到这里就完成了。下面,打开Wordpad输入一些文本在fax打印机上打印!接着屏幕上出现响应打印对话框(如果你运行了respond.exe),询问对方传真号码,输入传真号码并选择OK这份传真就会被送到hylafax传真服务器了。在服务器上输入faxsat -s检查系统是否工作正常,正常情况下应该能够看到刚刚发送的传真。
七、用FAX发送邮件
在服务器端StarOffice可以用FAX发送邮件。另外,数据库可以放置在网络的任何地方,并且能被StarOffice(通过ODBC,JDBC)访问。用spadmin工具配置电子传真的输出:faxspool(PHONE)(TMP)。在传真文件中设置@@#num_tel_fax@@,用数据库的字段名替代num_tel_fax。StarOffice的帮助文件中有全部相关解释。 这种方式的缺点是:你必须在传真服务器上安装StarOffice。
【相关文章】
【责任编辑:常疆 Tel:(010)68576606-8002】
内容导航