á×ÔÏÏÔ×ÅÔÞÉË ÎÁ Voice Modem.
áÎÁÔÏÌÉÊ ÷ÁÌÅÒØÅ×ÉÞ
anatolevd ÎÁ gmail.com
þÔ á×Ç 16 06:05:32 UTC 2012
úÄÒÁ×ÓÔ×ÕÊÔÅ, Õ×ÁÖÁÅÍÙÅ ÞÉÔÁÔÅÌÉ ÒÁÓÓÙÌËÉ ubuntu-ru. åÓÔØ ÓÔÁÒÅÎØËÉÊ
ËÏÍÐØÀÔÅÒ Ó Ubuntu 8.04. ó ÐÏÍÏÝØÀ ÐÒÏÇÒÁÍÍÙ vgetty É ×ÎÅÛÎÅÇÏ ÍÏÄÅÍÁ
ÏÒÇÁÎÉÚÏ×ÁÎ Á×ÔÏÏÔ×ÅÔÞÉË. îÁÓÔÒÏÊËÁ ÐÒÏ×ÏÄÉÌÁÓØ ÐÏ ÎÁÊÄÅÎÎÙÍ × ÉÎÔÅÒÎÅÔÅ
ÍÁÔÅÒÉÁÌÁÍ. ðÒÏÓÌÕÛÉ×ÁÎÉÅ ÓÏÏÂÝÅÎÉÊ É ÉÈ ÕÄÁÌÅÎÉÅ ÏÒÇÁÎÉÚÏ×ÁÎÏ Ó ÐÏÍÏÝØÀ
ÓËÒÉÐÔÏ×, ÎÁÊÄÅÎÎÙÈ × ÉÎÔÅÒÎÅÔÅ. òÅÛÉÌ ÏÒÇÁÎÉÚÏ×ÁÔØ ÏÐÏ×ÅÝÅÎÉÅ ÏÂ
ÏÓÔÁ×ÌÅÎÎÙÈ ÓÏÏÂÝÅÎÉÑÈ. îÁÛÅÌ ÓËÒÉÐÔ, ËÏÔÏÒÙÊ Á×ÔÏÒ ÒÅËÏÍÅÎÄÕÅÔ ÚÁÐÕÓËÁÔØ
ÞÅÒÅÚ cron:
#!/bin/bash
MESDIR=`ls /var/spool/voice/incoming/*.[Rr][Mm][Dd] 2> /dev/null | wc -l`
if [ $MESDIR != "0" ]; then
echo äÌÑ ÷ÁÓ ÅÓÔØ $MESDIR ÓÏÏÂÝÅÎÉÅ\(ÎÉÊ\). | mail -s "åÓÔØ ÓÏÏÂÝÅÎÉÑ
ÎÁ Á×ÔÏÏÔ×ÅÔÞÉËÅ" $USER # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ
fi
× ÍÏÅÍ ÓÌÕÞÁÅ, ÐÒÉ ÚÁÐÕÓËÅ ÓËÒÉÐÔÁ ÐÏÌÕÞÁÀ ÔÁËÏÅ ÓÏÏÂÝÅÎÉÅ:
anatol ÎÁ anatol-desktop:~$ sh message.sh
message.sh: 6: mail: not found
ðÏÄÓËÁÖÉÔÅ, ËÁËÏÊ ÐÁËÅÔ ÎÕÖÎÏ ÕÓÔÁÎÏ×ÉÔØ, ÞÔÏÂÙ ËÏÍÐØÀÔÅÒ ÓÔÁÌ ÐÏÎÉÍÁÔØ
ËÏÍÁÎÄÕ mail?
----------- ÓÌÅÄÕÝÁÑ ÞÁÓÔØ -----------
÷ÌÏÖÅÎÉÅ × ÆÏÒÍÁÔÅ HTML ÂÙÌÏ ÉÚ×ÌÅÞÅÎÏ…
URL: <https://lists.ubuntu.com/archives/ubuntu-ru/attachments/20120816/b0e5e59f/attachment.html>
ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ ubuntu-ru