Anrufbeantworter
Hans-Joachim Hoetger
Hans-Joachim.Hoetger at willi.gt.owl.de
Wed Feb 27 22:18:02 CET 2002
On Wed, Feb 27, 2002 at 09:32:33PM +0100, Cord Beermann wrote:
>
> >if [ ! -r $1 ], then
> ^
>
> wenn das Zeile 16 ist, sollte das wohl ein ; sein.
>
> >playrmd: line 16: sytax error near unexspected token `fi'
> >playrmd: line 16: `fi'
>
> >Leider hab ich keine Ahnung vom Programmieren; das Script steht so im
> >Buch. Kann sich jemand erbarmen und mir sagen, was ich anders machen
> >muss?
>
Hallo
Den Fehler hat Cord Dir ja schon berichtigt. Ich habe eine andere
Anregung: Ich lasse mir die eingehenden Mail als WAVs per Mail
zuschicken. vgetty bietett dazu an, einen Filter einzutragen. Ich
benutze folgendes script als Filter:
#!/bin/sh
[ -z "$1" ] && exit 1
/usr/sbin/smail hajo <<+here
Subject: Anruf erhalten
Content-Type: audio/x-wav;
name="$1.wav"
Content-Transfer-Encoding: base64
$(cat $1 | /usr/bin/rmdtopvf \
| /usr/bin/pvftowav 2>/dev/null \
| /usr/bin/mimencode)
+here
exit 0
Grüße
--
Hans-Joachim Hoetger
"Man koennte auch sagen: Unix ist fuer Echte Maenner (TM), Windows fuer
Masochisten und MacOS fuer Maedchen." (Alexander Schreiber in d.c.s.f.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020227/18f0cfbf/attachment.sig>
More information about the Linux
mailing list