Article View: aus.computers.linux
Article #55765Re: mgetty a success
From: Andrew Pavlomanolakos
Date: Wed, 07 May 1997 00:00
Date: Wed, 07 May 1997 00:00
140 lines
3867 bytes
3867 bytes
woody@{spam.bites}.daemon.apana.org.au (Terry Wood) writes:
>Hello all,
>I thought i would post a note to say that after i posted a couple of
>questions here i have got mgetty working on my system (RH4.1 2.0.29)
>working 100% the way i want.
>I am using a Netcomm M11F on my dialup now and it recieves data
>calls no worries and with the adaptive answer and mgetty i have got
>it to also recieve faxs without a hitch. (Thanks to all those
>companies that have toll free fax back for the testing stage :)
>Once a fax has been recieved it sends email notification and then i
>can use g3topbm to convert the file into a pbm bitmap which can
>be viewed and printed out no worries at all :)..
>Just thought i would mention it thats all.
>Now to work on some scripts to convert it automatically and have it
>waiting to view or print or even to convert and print it
>automatically.
You can do it automatically but I prefer to check the content before
printing it out.
After I receive a fax I use the following scripts to view and then print
the files:
-----------------------------------------------------------------------------
::::::::::::::
g3viewhr
::::::::::::::
#!/bin/sh
set +x
rm -rf /tmp/g3
mkdir /tmp/g3
cp $* /tmp/g3
cd /tmp/g3
pagecount=$(echo * | wc -w)
for g3 in *
do
efix -i fax -o ps -r 300 -d6x18mm -s1.38 $g3
# efix -i fax -o pbm $g3 > $g3.pbm
# efix -i fax -o pcl -s1.3 $g3 > $g3.lj
done |
awk -vpagecount="$pagecount" '
BEGIN {
pageno = 0
}
{
if (pageno > 0 && $1 == "%!PS-Adobe-2.0") {
while ($1 != "%%Page:")
getline
}
line = $0
if ($1 == "%%Page:")
line = sprintf("%%%%Page: %d %d", ++pageno, pagecount)
print line
}' - > /tmp/fax.ps
gv -geom 1014x714+0+0 /tmp/fax.ps
-----------------------------------------------------------------------------
::::::::::::::
g3viewlr
::::::::::::::
#!/bin/sh
set +x
rm -rf /tmp/g3
mkdir /tmp/g3
cp $* /tmp/g3
cd /tmp/g3
pagecount=$(echo * | wc -w)
for g3 in *
do
efix -i fax -o ps -r 300x170 -d6x18mm -s1.38 $g3
# efix -i fax -o pbm $g3 > $g3.pbm
# efix -i fax -o pcl -s1.3 $g3 > $g3.lj
done |
awk -vpagecount="$pagecount" '
BEGIN {
pageno = 0
}
{
if (pageno > 0 && $1 == "%!PS-Adobe-2.0") {
while ($1 != "%%Page:")
getline
}
line = $0
if ($1 == "%%Page:")
line = sprintf("%%%%Page: %d %d", ++pageno, pagecount)
print line
}' - > /tmp/fax.ps
gv -geom 1014x714+0+0 /tmp/fax.ps
-----------------------------------------------------------------------------
So if I get a mail which says:
Communication parameters: +FDCS: 0,3,0,2,0,0,0,5
Resolution : normal
Bit Rate : 9600
Page Width : 1728 pixels
Page Length: unlimited
Compression: 0 (1d mod Huffman)
Error Corr.: none
Scan Time : 5
Reception Time : 3:0
Spooled G3 fax files:
/var/spool/fax/incoming/fn1ea350aL1.01
/var/spool/fax/incoming/fn1ea350aL1.02
/var/spool/fax/incoming/fn1ea350aL1.03
I would type the following to view all three pages:
g3viewlr /var/spool/fax/incoming/fn1ea350aL1.??
If it isn't junk I would then print it from within gv.
Use g3viewhr for high resolution (fine) faxes.
>Catch ya,
> Woody <woody@netspace.net.au>
> Note: remove {spam.bites} to reply
>--
>Terry J. Wood,
>Located at Traralgon, Gippsland
>Country Victoria, Australia
Regards, Andrew Pav
Technical Details
Message-ID:
<5kpkre$61o@pav.pavsoft.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<336f1035.254366512@news.netspace.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,967c4d5d6f2f5d3 X-Google-Attributes: gid102983,public From: app@novanet.net.au (Andrew Pavlomanolakos) Subject: Re: mgetty a success Date: 1997/05/07 Message-ID: <5kpkre$61o@pav.pavsoft.com.au> X-Deja-AN: 240007730 References: <336f1035.254366512@news.netspace.net.au> Organization: PavSoft Pty Ltd Newsgroups: aus.computers.linux