Griasde Dieter! Am Donnerstag, 22. November 2001 12:07 schrieb Dieter Kluenter:
Du behandelst FaxDispatch als shellscript. Das ausfuehrende shellscript ist aber bin/faxrcvd.
Bin mir keiner Schuld bewußt, hab' genau das gamacht, was in dem Buch "Kommunikation unter Linux" steht.
Wo hast Du denn das her? Hast Du zu dieser Vorgehensweise genauere Informationen oder Quellen?
man faxrcvd
O.K. dort entnehme ich: bin/faxrcvd is the command script invoked by the facsimile server whenever a facsimile is received. The default script sends electronic mail to the FaxMaster user describing the content of the facsimile and other useful information such as the time spent receiving the document. Scheint ja cuh zu funktionieren, da die Nachricht ja an den Faxmaster geschickt wird, in meinem Falle also an root. Weiterhin steht dort: NOTES This script can route facsimile directly to the intended receipient if the sender's identity is well-known. To do this create a shell script etc/FaxDispatch in the spooling area that sets the receiver's electronic mail address according to the sender's TSI. Soweit mich meine Englischkenntnisse nun nicht ganz verlassen, steht da, ich solle ein shell script unter /etc stellen. Hab' ich auch gemacht: bash-2.05# pwd /var/spool/fax/etc bash-2.05# cat FaxDispatch #!/bin/sh case "$SENDER" in *) SENDTO=bigchief;; # Fax geht an user bigchief esac Hierzu die Angaben aus man faxrcvd: For example, case "$SENDER" in *1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley *1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning *5107811212) SENDTO=peebles@mti;; # stuff from home *) SENDTO=;; # don't know who to send it to esac Note that you must match any embedded white space and you should direct any facsimile that are not dispatched to a ``null person''. The facsimile will be sent as a MIME- encoded PostScript document; consult the shell script for details. Ich bin mir sicher dass alles passen müsste, aber weiß ehrlich nicht mehr weiter ... BTW, muss ich eigentlich HylaFax irgendwie neustarten, wenn ich die FaxDispatch Datei geändert habe? cu, BC -- Michael Nausch Anzinger Str. 20 85586 Poing +49-8121-989810 (voice) +49-8121-971941 (fax) http://omni128.de michael@nausch.org