[Volgograd] cron, pppd and etc.
Евгений В. Хорохорин
horohorinev на mail.ru
Пт Янв 31 01:11:53 MSK 2003
On Thu, 30 Jan 2003 23:54:54 +0300
Dwarf <dwarf на reg.avtlg.ru> wrote:
> Hi.
>
> 1. Как пользовать cron, at и другие проги такого назначения? Как
> добавлять задачи? И можно ли это делать из-под обыкновенного юзера?
> (не из под root'а, не делая su)
crontab -e и в соответствии с man 5 crontab добавить задачу, например:
0-59/5 * * * * /usr/bin/cat /home/genix/message | /bin/mail cityhawk на mail.ru
права рута не нужны
>
> 2. Тарас, не могу найти ссылку, как реализовать ppp on demand. Дай,
> пожалуйста, или сам напиши, как сделать.
выдержка из man pppd
demand Initiate the link only on demand, i.e. when data traffic is
present. With this option, the remote IP address must be speci-
fied by the user on the command line or in an options file.
Pppd will initially configure the interface and enable it for IP
traffic without connecting to the peer. When traffic is avail-
able, pppd will connect to the peer and perform negotiation,
authentication, etc. When this is completed, pppd will commence
passing data packets (i.e., IP packets) across the link.
The demand option implies the persist option. If this behaviour
is not desired, use the nopersist option after the demand
option. The idle and holdoff options are also useful in conjuc-
tion with the demand option.
P.S.: содержание /home/genix/message не привожу из соображений цензуры ;))))
--
Best regards, mailto: genix на sendmail.ru
Genix http://saratov.lug.ru
Registered Linux User #219993 JID: genix на jabber.org
-= С моих слов записано верно, мною прочитано =-
Подробная информация о списке рассылки Volgograd