Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Andy Shevchenko                      2:465/192      24 Oct 2001  13:05:56
 To : All
 Subject : Re: mgetty
 -------------------------------------------------------------------------------- 
 
 .RFC-X-Complaints-To: news@serv.smile.org.ua
 .RFC-NNTP-Posting-Date: 24 Oct 2001 10:05:15 GMT
 .RFC-X-Priority: 3
 .RFC-X-MSMail-Priority: Normal
 .RFC-X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
 "Sergey Shibeko" <Sergey_Shibeko@f32.n5031.z2.fidonet.org> wrote in
 message news:4131969306@f32.n5031.z2.fidonet...
 
 > DG> помогите прописать mgetty в inittab, чтобы mgetty отвечала в
 
 определенное
 
 > DG> время на звонки. Мож кто пример даст? Помогите, плз!
 > mg2:3:respawn:/sbin/mgetty -n `cat /etc/mgetty+sendfax/ring.ttyS2`
 
 ttyS2
 
 > -s 115200
 > Это одной строкой. В файл /etc/mgetty+sendfax/ring.ttyS2 писать
 > кроном на какой звонок отвечать.
 > 59 22 * * * echo 1 >/etc/mgetty+sendfax/ring.ttyS2
 > 00 23 * * * killall mgetty 2>/dev/null >/dev/null
 > 59 07 * * * echo 8 >/etc/mgetty+sendfax/ring.ttyS2
 > 00 08 * * * killall mgetty 2>/dev/null >/dev/null
 
 А у меня красивее :)
 
 /etc/inittab
 S0:2345:respawn:/sbin/mgetty -i /etc/issue.net -n `cat /etc/rings.ttyS0`
 /dev/ttyS0
 
 /etc/crontab
 # run & stop autoanswer for ttyS0
 #15 6 * * * root touch /etc/nologin.ttyS0
 #45 22 * * * root rm -f /etc/nologin.ttyS0
 15 6 * * * root echo "12" > /etc/rings.ttyS0
 16 6 * * * root kill -15 `cat /var/run/mgetty-pid.ttyS0`
 45 22 * * * root echo "1" > /etc/rings.ttyS0
 46 22 * * * root kill -15 `cat /var/run/mgetty-pid.ttyS0`
 
 --
 With Best Regards,
 Andy Shevchenko                    mailto:andy@smile.org.ua
 --- Microsoft Outlook Express 6.00.2600.0000
  * Origin: Smile Club (2:465/192@fidonet)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 mgetty   Dmitry Gurov   24 Oct 2001 07:36:00 
 Re: mgetty   Sergey Shibeko   24 Oct 2001 10:18:10 
 Re: mgetty   Andy Shevchenko   24 Oct 2001 13:05:56 
 mgetty   Peter Svistunov   26 Oct 2001 21:21:28 
 Re: mgetty   Andy Shevchenko   26 Oct 2001 17:05:13 
 mgetty   Peter Svistunov   27 Oct 2001 00:31:34 
 Re: mgetty   Sergey Shibeko   26 Oct 2001 23:17:07 
 mgetty   Svyatoslav Abramenkov   26 Oct 2001 17:10:29 
 Re: mgetty   Sergey Shibeko   26 Oct 2001 19:24:02 
 mgetty   Ivan Vanin   24 Oct 2001 16:02:48 
 mgetty   Alexander Stavitsky   25 Oct 2001 17:01:43 
 mgetty   Peter Svistunov   26 Oct 2001 21:16:43 
 mgetty   Alexander Topolskiy   26 Oct 2001 22:55:04 
Архивное /ru.linux/12169f0f3c387.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional