ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] все ли правильно в crontab?
@ 2005-12-28  6:36 Vitaly Gorshkov
  2005-12-28  6:46 ` Шенцев Алексей Владимирович
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Vitaly Gorshkov @ 2005-12-28  6:36 UTC (permalink / raw)
  To: community

содержимое crontab
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
0 7 * * * /usr/sbin/ipsec setup restart

нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
нет (



-- 
С уважением,
 Vitaly                          mailto:vita55555@mail.ru
icq: 138491970




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  6:36 [Comm] все ли правильно в crontab? Vitaly Gorshkov
@ 2005-12-28  6:46 ` Шенцев Алексей Владимирович
  2005-12-28  6:53   ` Дворников Михаил
  2005-12-28  6:48 ` Evgenii Terechkov
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Шенцев Алексей Владимирович @ 2005-12-28  6:46 UTC (permalink / raw)
  To: Vitaly Gorshkov, ALT Linux Community

В сообщении от Среда 28 Декабрь 2005 09:36 Vitaly Gorshkov написал(a):
> содержимое crontab
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 0 7 * * * /usr/sbin/ipsec setup restart
^^^^^^^^^^^^^^^^^^^^^^^^^
если не ошибусь должно быть примерно так:
0 7 * * * root /usr/sbin/ipsec setup restart
ну и от рута выполнить #service crond restart

>
> нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
> нет (

-- 
С уважением, Шенцев Алексей (AShen)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  6:36 [Comm] все ли правильно в crontab? Vitaly Gorshkov
  2005-12-28  6:46 ` Шенцев Алексей Владимирович
@ 2005-12-28  6:48 ` Evgenii Terechkov
  2005-12-28  6:49 ` Dmitry Lebkov
  2005-12-28  6:57 ` Andrew Borodin
  3 siblings, 0 replies; 11+ messages in thread
From: Evgenii Terechkov @ 2005-12-28  6:48 UTC (permalink / raw)
  To: Vitaly Gorshkov, ALT Linux Community

Vitaly Gorshkov писал:
> содержимое crontab
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 0 7 * * * /usr/sbin/ipsec setup restart
> 
> нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
> нет (
> 
> 
> 

0 7 * * * root /usr/sbin/ipsec setup restart ?

(Наверно нет такого пользователя:"/usr/sbin/ipsec" или команды "setup 
restart" ?)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  6:36 [Comm] все ли правильно в crontab? Vitaly Gorshkov
  2005-12-28  6:46 ` Шенцев Алексей Владимирович
  2005-12-28  6:48 ` Evgenii Terechkov
@ 2005-12-28  6:49 ` Dmitry Lebkov
  2005-12-28  6:57 ` Andrew Borodin
  3 siblings, 0 replies; 11+ messages in thread
From: Dmitry Lebkov @ 2005-12-28  6:49 UTC (permalink / raw)
  To: Vitaly Gorshkov, ALT Linux Community

Vitaly Gorshkov wrote:
> содержимое crontab
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 0 7 * * * /usr/sbin/ipsec setup restart
> 
> нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
> нет (

man 5 crontab

-- 
wbr, dvl


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  6:46 ` Шенцев Алексей Владимирович
@ 2005-12-28  6:53   ` Дворников Михаил
  2005-12-28  8:22     ` Re[2]: " Vitaly Gorshkov
  0 siblings, 1 reply; 11+ messages in thread
From: Дворников Михаил @ 2005-12-28  6:53 UTC (permalink / raw)
  To: ALT Linux Community

Шенцев Алексей Владимирович пишет:
> В сообщении от Среда 28 Декабрь 2005 09:36 Vitaly Gorshkov написал(a):
> 
>>содержимое crontab
>># run-parts
>>01 * * * * root run-parts /etc/cron.hourly
>>02 4 * * * root run-parts /etc/cron.daily
>>22 4 * * 0 root run-parts /etc/cron.weekly
>>42 4 1 * * root run-parts /etc/cron.monthly
>>0 7 * * * /usr/sbin/ipsec setup restart
> 
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> если не ошибусь должно быть примерно так:
> 0 7 * * * root /usr/sbin/ipsec setup restart
> ну и от рута выполнить #service crond restart
> 
> 
>>нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
>>нет (

# crontab -e
откроет редактор и обновит задания при выходе из редактора.
# crontab -l
покажет список заданий

Удобный для пользователя редактор устанавливается переменной EDITOR.
-- 
С уважением, Дворников Михаил.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  6:36 [Comm] все ли правильно в crontab? Vitaly Gorshkov
                   ` (2 preceding siblings ...)
  2005-12-28  6:49 ` Dmitry Lebkov
@ 2005-12-28  6:57 ` Andrew Borodin
  3 siblings, 0 replies; 11+ messages in thread
From: Andrew Borodin @ 2005-12-28  6:57 UTC (permalink / raw)
  To: community

On Wed, Dec 28, 2005 at 09:36:33AM +0300, Vitaly Gorshkov wrote:
> содержимое crontab
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 4 * * * root run-parts /etc/cron.daily
> 22 4 * * 0 root run-parts /etc/cron.weekly
> 42 4 1 * * root run-parts /etc/cron.monthly
> 0 7 * * * /usr/sbin/ipsec setup restart

> нужно чтобы ipsec setup restart в 7 часов выполнялось, в логах ничего
> нет (

Пропущен пользователь (видимо, root):

0 7 * * * root /usr/sbin/ipsec setup restart

-- 

С уважением,
А. Бородин.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re[2]: [Comm] все ли правильно в crontab?
  2005-12-28  6:53   ` Дворников Михаил
@ 2005-12-28  8:22     ` Vitaly Gorshkov
  2005-12-28  8:46       ` Andrew Borodin
  0 siblings, 1 reply; 11+ messages in thread
From: Vitaly Gorshkov @ 2005-12-28  8:22 UTC (permalink / raw)
  To: ALT Linux Community, community

>> если не ошибусь должно быть примерно так:
>> 0 7 * * * root /usr/sbin/ipsec setup restart
>> ну и от рута выполнить #service crond restart


ДМ> # crontab -e
ДМ> откроет редактор и обновит задания при выходе из редактора.
ДМ> # crontab -l
ДМ> покажет список заданий

ДМ> Удобный для пользователя редактор устанавливается переменной EDITOR.


    всем большое пасибо!!

    ps:

# crontab -l
no crontab for root

# crontab -e

попал в редактор - а как из него выйти ?


#minute (0-59),
#|  hour (0-23),
#|  |   day of the month (1-31),
#|  |   |   month of the year (1-12),
#|  |   |   |   day of the week (0-6 with 0=Sunday).
#|  |   |   |   |   commands
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/tmp/crontab.eIwF3G" 6L, 161C

    



-- 
С уважением,
 Vitaly                          mailto:vita55555@mail.ru




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  8:22     ` Re[2]: " Vitaly Gorshkov
@ 2005-12-28  8:46       ` Andrew Borodin
  2005-12-28  8:49         ` Шенцев Алексей Владимирович
  2005-12-28  9:33         ` Re[2]: " Vitaly Gorshkov
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Borodin @ 2005-12-28  8:46 UTC (permalink / raw)
  To: ALT Linux Community

On Wed, Dec 28, 2005 at 11:22:05AM +0300, Vitaly Gorshkov wrote:
> # crontab -e

> попал в редактор - а как из него выйти ?

Добро пожаловать в vim! :-)

Выход с сохранением: ZZ (обратите внимание на большие буквы! Жать 
надо c Shift), либо :wq . Без сохранения ZQ, либо :q! .

-- 

С уважением,
А. Бородин.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  8:46       ` Andrew Borodin
@ 2005-12-28  8:49         ` Шенцев Алексей Владимирович
  2005-12-28  8:59           ` Дворников Михаил
  2005-12-28  9:33         ` Re[2]: " Vitaly Gorshkov
  1 sibling, 1 reply; 11+ messages in thread
From: Шенцев Алексей Владимирович @ 2005-12-28  8:49 UTC (permalink / raw)
  To: ALT Linux Community

В сообщении от Среда 28 Декабрь 2005 11:46 Andrew Borodin написал(a):
> On Wed, Dec 28, 2005 at 11:22:05AM +0300, Vitaly Gorshkov wrote:
> > # crontab -e
> >
> > попал в редактор - а как из него выйти ?
;)
>
> Добро пожаловать в vim! :-)
>
> Выход с сохранением: ZZ (обратите внимание на большие буквы! Жать
> надо c Shift), либо :wq . Без сохранения ZQ, либо :q! .
Мне удобней для таких вещей использовать редактор в mc ... ;)
-- 
С уважением, Шенцев Алексей (AShen)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] все ли правильно в crontab?
  2005-12-28  8:49         ` Шенцев Алексей Владимирович
@ 2005-12-28  8:59           ` Дворников Михаил
  0 siblings, 0 replies; 11+ messages in thread
From: Дворников Михаил @ 2005-12-28  8:59 UTC (permalink / raw)
  To: ALT Linux Community

Шенцев Алексей Владимирович пишет:
> Мне удобней для таких вещей использовать редактор в mc ... ;)
создать файл: /etc/profile.d/editor.sh
в нем написать: export EDITOR = mcedit
-- 
С уважением, Дворников Михаил.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re[2]: [Comm] все ли правильно в crontab?
  2005-12-28  8:46       ` Andrew Borodin
  2005-12-28  8:49         ` Шенцев Алексей Владимирович
@ 2005-12-28  9:33         ` Vitaly Gorshkov
  1 sibling, 0 replies; 11+ messages in thread
From: Vitaly Gorshkov @ 2005-12-28  9:33 UTC (permalink / raw)
  To: ALT Linux Community, community

AB> Добро пожаловать в vim! :-)

AB> Выход с сохранением: ZZ (обратите внимание на большие буквы! Жать 
AB> надо c Shift), либо :wq . Без сохранения ZQ, либо :q! .

    не выходит: shift-Z-Z
    я его ssh закрыл и все закрылось ))


-- 
С уважением,
 Vitaly                          mailto:vita55555@mail.ru




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-12-28  9:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28  6:36 [Comm] все ли правильно в crontab? Vitaly Gorshkov
2005-12-28  6:46 ` Шенцев Алексей Владимирович
2005-12-28  6:53   ` Дворников Михаил
2005-12-28  8:22     ` Re[2]: " Vitaly Gorshkov
2005-12-28  8:46       ` Andrew Borodin
2005-12-28  8:49         ` Шенцев Алексей Владимирович
2005-12-28  8:59           ` Дворников Михаил
2005-12-28  9:33         ` Re[2]: " Vitaly Gorshkov
2005-12-28  6:48 ` Evgenii Terechkov
2005-12-28  6:49 ` Dmitry Lebkov
2005-12-28  6:57 ` Andrew Borodin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git