Discussion:
Windows-7-Client for mgetty+sendfax
(too old to reply)
TJ$ (Volker Englisch)
2014-05-03 16:32:16 UTC
Permalink
Is there anything left here besides spam? Looks terrible, this group.
Nevertheless, I'll try an inquiry...:

Running mgetty+sendfax on a unix machine works excellently from the
command line and is used primarily for sending fax messages.

As time went by, the old Windows-95 clients are gone and the clients
run now Windows 7 Home Premium. Possibly there will be an additional
Windows 8.1 client in future.

While browsing the web, I did not find any client that can be used on
the modern Windows machines to interact with mgetty+sendfax so that the
receiver's fax nummer is requested when printing a file to
mgetty+sendfax.

Did I miss something or am I just out of luck?

Yours
Volker
Ignatios Souvatzis
2014-05-19 20:10:58 UTC
Permalink
Post by TJ$ (Volker Englisch)
Is there anything left here besides spam? Looks terrible, this group.
Running mgetty+sendfax on a unix machine works excellently from the
command line and is used primarily for sending fax messages.
As time went by, the old Windows-95 clients are gone and the clients
run now Windows 7 Home Premium. Possibly there will be an additional
Windows 8.1 client in future.
Ha, I've used it with Windows for Workgroups 3.11B ;-) (Third-hand
laptop a familiy member had gotten).
Post by TJ$ (Volker Englisch)
While browsing the web, I did not find any client that can be used on
the modern Windows machines to interact with mgetty+sendfax so that the
receiver's fax nummer is requested when printing a file to
mgetty+sendfax.
Hm, I don't remember how the old stuff worked.

With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB. But with
E-mail reaching higher education and book publishers, this stopped
to be needful, so it's thoroughly bit-rotten and has probably fallen
off my server at some update.

-is
Ignatios Souvatzis
2014-05-19 20:18:28 UTC
Permalink
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB. But with
E-mail reaching higher education and book publishers, this stopped
to be needful, so it's thoroughly bit-rotten and has probably fallen
off my server at some update.
Found it, complete with debug output:

/etc/printcap:

# $NetBSD: printcap,v 1.11 2002/07/01 23:10:19 hubertf Exp $
# from: @(#)printcap 8.1 (Berkeley) 6/9/93
#...
fax:\
:mx#0:sh:\
:sd=/var/spool/output/fax:\
:if=/usr/local/sbin/lpd2fax:\
:lp=/var/spool/output/fax/null:
#...

/usr/local/sbin/lpd2fax:


#!/bin/sh

PATH=/usr/pkg/sbin:/usr/pkg/bin:/usr/bin:/bin

input=$(pwd)/tempfile.$$.ps

echo Druckparameter $* >> /var/log/hp.log
cat > $input
faxnummer=$(cat $input | ps2ascii | \
awk '/Fax-Nr:/{for (i=1;i<=NF;i++){if ($i == "Fax-Nr:") {print $(i+1)}}}')
date >> /var/log/hp.log
echo Faxnummer $faxnummer >> /var/log/hp.log

args=`getopt cw:l:i:n:h: $*`
set -- $args
echo $args >> /var/log/hp.log
while [ $# -gt 0 ]; do
case "$1" in
-n) user=$2; shift
;;
--) shift;break
;;
esac
shift
done
echo "User: " $user >> /var/log/hp.log

faxspool -u $user -f $user $faxnummer $input >> /var/log/hp.log 2>&1
#faxspool $faxnummer $input >> /var/log/hp.log 2>&1

exit 0
Ignatios Souvatzis
2014-05-20 06:20:25 UTC
Permalink
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB. But with
E-mail reaching higher education and book publishers, this stopped
to be needful, so it's thoroughly bit-rotten and has probably fallen
off my server at some update.
Found it, complete with debug output:

/etc/printcap:

# $NetBSD: printcap,v 1.11 2002/07/01 23:10:19 hubertf Exp $
# from: @(#)printcap 8.1 (Berkeley) 6/9/93
#...
fax:\
:mx#0:sh:\
:sd=/var/spool/output/fax:\
:if=/usr/local/sbin/lpd2fax:\
:lp=/var/spool/output/fax/null:
#...

/usr/local/sbin/lpd2fax:


#!/bin/sh

PATH=/usr/pkg/sbin:/usr/pkg/bin:/usr/bin:/bin

input=$(pwd)/tempfile.$$.ps

echo Druckparameter $* >> /var/log/hp.log
cat > $input
faxnummer=$(cat $input | ps2ascii | \
awk '/Fax-Nr:/{for (i=1;i<=NF;i++){if ($i == "Fax-Nr:") {print $(i+1)}}}')
date >> /var/log/hp.log
echo Faxnummer $faxnummer >> /var/log/hp.log

args=`getopt cw:l:i:n:h: $*`
set -- $args
echo $args >> /var/log/hp.log
while [ $# -gt 0 ]; do
case "$1" in
-n) user=$2; shift
;;
--) shift;break
;;
esac
shift
done
echo "User: " $user >> /var/log/hp.log

faxspool -u $user -f $user $faxnummer $input >> /var/log/hp.log 2>&1
#faxspool $faxnummer $input >> /var/log/hp.log 2>&1

exit 0
Volker Englisch
2014-05-22 07:33:58 UTC
Permalink
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB.
Wow, great! This really works with M$Word .doc and OOO .odt files? I'll
try it the next days.

Thanks a lot!

V*
Ignatios Souvatzis
2014-05-22 16:11:49 UTC
Permalink
Post by Volker Englisch
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB.
Wow, great! This really works with M$Word .doc and OOO .odt files? I'll
try it the next days.
Worked with the version word4mac 200... err... 2004? 2007? don't remember,
will have to check at home.

The text string must be in one piece without ever changing the
formatting, of course, so that it's transformed in one postscript
string.

For some versions a special word macro was published on the web site
where this method was suggested, but I never needed that.

-is
--
A medium apple... weighs 182 grams, yields 95 kcal, and contains no
caffeine, thus making it unsuitable for sysadmins. - Brian Kantor
Ignatios Souvatzis
2014-06-02 13:25:22 UTC
Permalink
Post by Volker Englisch
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB.
Wow, great! This really works with M$Word .doc and OOO .odt files? I'll
try it the next days.
Worked with the version word4mac 200... err... 2004? 2007? don't remember,
would have to check at home.

The text string must be in one piece without ever changing the
formatting, of course, so that it's transformed into one postscript
string.

For some versions a special word macro was published on the web site
where this method was suggested, but I never needed that.

-is
--
A medium apple... weighs 182 grams, yields 95 kcal, and contains no
caffeine, thus making it unsuitable for sysadmins. - Brian Kantor
Ignatios Souvatzis
2014-12-16 07:14:34 UTC
Permalink
Post by Volker Englisch
Post by Ignatios Souvatzis
With the newer Windows and the Mac machine, I had switched to a
script that pulled out "Fax-Nr: xxxxxxxx" of a document and used
the xxxxxxx, and a pseudo- printer accessible over SMB.
Wow, great! This really works with M$Word .doc and OOO .odt files? I'll
try it the next days.
Probably depends on the Windows output driver, and I didn't try ith with
openlibrestaroffice back then, only Word for Mac came into our loop.

What are your experiences?

-is

Loading...