05-29-2012 10:31 AM
start on runlevel [2345]
stop on runlevel [S016]
respawn
exec /usr/sbin/faxgetty ttyS1
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139
iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138
cifs.enabled=true
cifs.Server.Name=fax_a
cifs.domain=MYDOMAIN
cifs.hostanounce=true
cifs.broadcast=0.0.0.0
cifs.tcpipSMB.port=1445
cifs.ipv6.enabled=false
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139
audit.enabled=true
audit.dod5015.enabled=true
mkdir /mnt/faxdm
edit the "/etc/fstab" add simillar content //Give-IP-DM/Alfresco/yoursite/documentLibrary/faxin /mnt/faxdm cifs rw,suid,credentials=/etc/faxpass,domain=MYDOMAIN
#!/bin/bash
touch /root/myoutput
# search all the files which has been created since the last 5 minute
find /var/spool/hylafax/recvq -mmin -5 -type f -name "*.tif" > /root/myoutput
for i in `cat /root/myoutput`
do
cp -f $i /mnt/faxdm
cd /mnt/faxdm
# Stamping The copied FAX with present time
convert $i -pointsize 60 -draw "gravity south fill yellow text 8,26 '`date`' fill blue text 12,20 '`date`' " $i
done
rm /root/myoutput
To call this file, every 5 minutes make a crontab entry, similar to */5 * * * * /root/scripts/FaxStampScript.sh
05-29-2012 04:26 PM
05-30-2012 01:15 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.