* [Comm] crontab @ 2003-08-11 4:46 Gosha 2003-08-11 5:18 ` Maxim.Savrilov 2003-08-11 5:38 ` Леутин Александр 0 siblings, 2 replies; 29+ messages in thread From: Gosha @ 2003-08-11 4:46 UTC (permalink / raw) To: community Hi All! Подскажите плиз, как сделать так, чтобы руту не присылались письма о задачке, запускаемой по крону. -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 4:46 [Comm] crontab Gosha @ 2003-08-11 5:18 ` Maxim.Savrilov 2003-08-11 5:42 ` Dmytro O. Redchuk 2003-08-11 5:38 ` Леутин Александр 1 sibling, 1 reply; 29+ messages in thread From: Maxim.Savrilov @ 2003-08-11 5:18 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 418 bytes --] On Mon, 11 Aug 2003 10:46:51 +0600 Gosha <gosha@zkb.ru> wrote: > Hi All! > > Подскажите плиз, как сделать так, чтобы руту не присылались > письма о задачке, запускаемой по крону. man 5 crontab -- Над седой равниной моря, Над крутой вершиной скал Гордо реял буревестник И метал на скалы кал. Глупый пингвин очень злится, Что несбыточны мечты. Он не может, хоть и птица, Гордо какать с высоты. [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 5:18 ` Maxim.Savrilov @ 2003-08-11 5:42 ` Dmytro O. Redchuk 0 siblings, 0 replies; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-11 5:42 UTC (permalink / raw) To: community On Mon, Aug 11, 2003 at 12:18:15PM +0700, Maxim.Savrilov@socenter.ru wrote: > On Mon, 11 Aug 2003 10:46:51 +0600 > Gosha <gosha@zkb.ru> wrote: > > > Hi All! > > > > Подскажите плиз, как сделать так, чтобы руту не присылались > > письма о задачке, запускаемой по крону. > > man 5 crontab :-))) Поскольку это как раз то, что я хотел написать, добавлю пару строк от себя. man 5 crontab выдаёт man из пятой секции -- служебные файлы, типа. Без пятёрки man выдал бы то, что нашёл первым, crontab(1) в данном случае (то же, что и man 1 crontab -- руководство по команде /программе/; секция 1 -- это user commands или типа того /пусть меня поправят/). man man, другими словами :-) и совершенно без сарказма. -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk XMMS: ... silence. ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 4:46 [Comm] crontab Gosha 2003-08-11 5:18 ` Maxim.Savrilov @ 2003-08-11 5:38 ` Леутин Александр 2003-08-11 5:43 ` Dmytro O. Redchuk 2003-08-11 12:14 ` Igor Solovyov 1 sibling, 2 replies; 29+ messages in thread From: Леутин Александр @ 2003-08-11 5:38 UTC (permalink / raw) To: community * Gosha <gosha@zkb.ru> Mon, 11 Aug 2003 10:46:51 +0600 > Hi All! > > Подскажите плиз, как сделать так, чтобы руту не присылались > письма о задачке, запускаемой по крону. Hi! Дописать в crontab >/dev/null 2>/dev/null :-)) -- Леутин Александр leutin@rambler.ru Registered Linux user #295797 Жизнь - смертельно интересная штука... ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 5:38 ` Леутин Александр @ 2003-08-11 5:43 ` Dmytro O. Redchuk 2003-08-11 12:16 ` Igor Solovyov 2003-08-12 4:21 ` Леутин Александр 2003-08-11 12:14 ` Igor Solovyov 1 sibling, 2 replies; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-11 5:43 UTC (permalink / raw) To: community On Mon, Aug 11, 2003 at 11:38:55AM +0600, Леутин Александр wrote: > * Gosha <gosha@zkb.ru> Mon, 11 Aug 2003 10:46:51 +0600 > > > Hi All! > > > > Подскажите плиз, как сделать так, чтобы руту не присылались > > письма о задачке, запускаемой по крону. > > Hi! > > Дописать в crontab >/dev/null 2>/dev/null :-)) не, man crontab лучше > -- > Леутин Александр leutin@rambler.ru > Registered Linux user #295797 > Жизнь - смертельно интересная штука... -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk XMMS: ... silence. ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 5:43 ` Dmytro O. Redchuk @ 2003-08-11 12:16 ` Igor Solovyov 2003-08-12 2:30 ` Maxim.Savrilov 2003-08-12 4:21 ` Леутин Александр 1 sibling, 1 reply; 29+ messages in thread From: Igor Solovyov @ 2003-08-11 12:16 UTC (permalink / raw) To: community Hi! On Mon, 11 Aug 2003 08:43:31 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > не, man crontab лучше Ткни меня пожалуйста в то место man 5 crontab, где про это написано. -- Best regards! Igor Solovyov System/network administrator JSC CB "Zlatkombank" ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 12:16 ` Igor Solovyov @ 2003-08-12 2:30 ` Maxim.Savrilov 2003-08-12 3:04 ` Gosha 0 siblings, 1 reply; 29+ messages in thread From: Maxim.Savrilov @ 2003-08-12 2:30 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 832 bytes --] On Mon, 11 Aug 2003 18:16:53 +0600 Igor Solovyov <gosha@zkb.ru> wrote: > Hi! > On Mon, 11 Aug 2003 08:43:31 +0300 > "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > > не, man crontab лучше > > Ткни меня пожалуйста в то место man 5 crontab, где про > это написано. lines 41- In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a result of running commands in ``this'' crontab. If MAILTO is defined (and non-empty), mail is sent to the user so named. If MAILTO is defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is sent to the owner of the crontab. так нормально? -- Какава - он жажду не утоляет, а вот пива - та да-а. [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 2:30 ` Maxim.Savrilov @ 2003-08-12 3:04 ` Gosha 0 siblings, 0 replies; 29+ messages in thread From: Gosha @ 2003-08-12 3:04 UTC (permalink / raw) To: community Hi! On Tue, 12 Aug 2003 09:30:53 +0700 Maxim.Savrilov@socenter.ru wrote: > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > > > > не, man crontab лучше > > > > Ткни меня пожалуйста в то место man 5 crontab, где про > > это написано. > > lines 41- > > In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO > if > it has any reason to send mail as a result of running > commands in``this'' crontab. If MAILTO is defined (and > non-empty), mail is sent to the user so named. If MAILTO is > defined but empty (MAILTO=""), no mail will be sent. > Otherwise mail is sent to the owner of the crontab. > > так нормально? Нет конечно. Сбросить переменную MAILTO не самый лучший выход. IMHO конечно. На самом деле, если Вам хотелось на мой вопрос ответить что-то типа man ..., то следовало бы ответить man bash. :-))) -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 5:43 ` Dmytro O. Redchuk 2003-08-11 12:16 ` Igor Solovyov @ 2003-08-12 4:21 ` Леутин Александр 2003-08-12 5:53 ` Dmytro O. Redchuk 2003-08-12 6:10 ` Gosha 1 sibling, 2 replies; 29+ messages in thread From: Леутин Александр @ 2003-08-12 4:21 UTC (permalink / raw) To: community * "Dmytro O. Redchuk" <dor@kiev-online.net> Mon, 11 Aug 2003 08:43:31 +0300 > > > Подскажите плиз, как сделать так, чтобы руту не присылались > > > письма о задачке, запускаемой по крону. > > > > Hi! > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > не, man crontab лучше Тот способ бесполезен, если требуется не посылать отчёт о каком-либо одном задании. -- Леутин Александр leutin@rambler.ru Registered Linux user #295797 Жизнь - смертельно интересная штука... ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 4:21 ` Леутин Александр @ 2003-08-12 5:53 ` Dmytro O. Redchuk 2003-08-12 6:12 ` Gosha 2003-08-12 6:10 ` Gosha 1 sibling, 1 reply; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-12 5:53 UTC (permalink / raw) To: community On Tue, Aug 12, 2003 at 10:21:31AM +0600, Леутин Александр wrote: > * "Dmytro O. Redchuk" <dor@kiev-online.net> Mon, 11 Aug 2003 08:43:31 > +0300 > > > > > Подскажите плиз, как сделать так, чтобы руту не присылались > > > > письма о задачке, запускаемой по крону. > > > > > > Hi! > > > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > не, man crontab лучше > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > одном задании. Да разумеется!-)) Но маны читать всегда надо -- поэтому нет ничего плохого в том, чтобы сначала ман прочитать, а потом понять, что где-то надо ставить " > /dev/null 2> /dev/null" Я же и не думал говорить, что предложенное Вами работать не будет, или что "это плохо" -- просто man всегда лучше ;-) > > -- > Леутин Александр leutin@rambler.ru > Registered Linux user #295797 -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk Wilcox's Law: A pat on the back is only a few centimeters from a kick in the pants. ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 5:53 ` Dmytro O. Redchuk @ 2003-08-12 6:12 ` Gosha 0 siblings, 0 replies; 29+ messages in thread From: Gosha @ 2003-08-12 6:12 UTC (permalink / raw) To: community Hi! On Tue, 12 Aug 2003 08:53:35 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > Но маны читать всегда надо -- поэтому нет ничего плохого в том, чтобы > сначала ман прочитать, а потом понять, что где-то надо ставить > " > /dev/null 2> /dev/null" Но в конкретно этом мане нет решения этого вопроса. И куда ставить " > /dev/null 2> /dev/null" из него не узнать. :-) -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 4:21 ` Леутин Александр 2003-08-12 5:53 ` Dmytro O. Redchuk @ 2003-08-12 6:10 ` Gosha 2003-08-12 6:47 ` Dmytro O. Redchuk 2003-08-12 8:41 ` [Comm] crontab Леутин Александр 1 sibling, 2 replies; 29+ messages in thread From: Gosha @ 2003-08-12 6:10 UTC (permalink / raw) To: community Hi! On Tue, 12 Aug 2003 10:21:31 +0600 Леутин Александр <leutin-lists@rambler.ru> wrote: > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > не, man crontab лучше > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > одном задании. Но и этот способ оказался не работающим. Письма приходят все равно. :-( -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 6:10 ` Gosha @ 2003-08-12 6:47 ` Dmytro O. Redchuk 2003-08-12 16:19 ` Igor Solovyov 2003-08-12 8:41 ` [Comm] crontab Леутин Александр 1 sibling, 1 reply; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-12 6:47 UTC (permalink / raw) To: community On Tue, Aug 12, 2003 at 12:10:32PM +0600, Gosha wrote: > Hi! > On Tue, 12 Aug 2003 10:21:31 +0600 > Леутин Александр <leutin-lists@rambler.ru> wrote: > > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > не, man crontab лучше > > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > > одном задании. > > Но и этот способ оказался не работающим. > Письма приходят все равно. > :-( Значит, ещё раз man :-) И напишите, что Вы пишете там.. или весь crontab... > > -- > Best regards! > Igor Solovyov > System/Network administrator > JSC CB "Zlatkombank", Zlatoust, Russia -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 6:47 ` Dmytro O. Redchuk @ 2003-08-12 16:19 ` Igor Solovyov 2003-08-13 6:15 ` Dmytro O. Redchuk 0 siblings, 1 reply; 29+ messages in thread From: Igor Solovyov @ 2003-08-12 16:19 UTC (permalink / raw) To: community Hi! On Tue, 12 Aug 2003 09:47:45 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > > не, man crontab лучше > > > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > > > одном задании. > > > > Но и этот способ оказался не работающим. > > Письма приходят все равно. > > :-( > Значит, ещё раз man :-) Еще раз какой? man 5 crontab не предлагать, там нет ответа на этот вопрос. > И напишите, что Вы пишете там.. или весь crontab... Ну весь конечно не буду, а вот то что не работает: .... 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null .... -- Best regards! Igor Solovyov System/network administrator JSC CB "Zlatkombank" ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 16:19 ` Igor Solovyov @ 2003-08-13 6:15 ` Dmytro O. Redchuk 2003-08-13 7:09 ` Igor Solovyov 0 siblings, 1 reply; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-13 6:15 UTC (permalink / raw) To: community On Tue, Aug 12, 2003 at 10:19:24PM +0600, Igor Solovyov wrote: > Hi! > On Tue, 12 Aug 2003 09:47:45 +0300 > "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > > > > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > > > не, man crontab лучше > > > > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > > > > одном задании. > > > > > > Но и этот способ оказался не работающим. > > > Письма приходят все равно. > > > :-( > > Значит, ещё раз man :-) > > Еще раз какой? man 5 crontab не предлагать, там нет ответа > на этот вопрос. Кусок из мана: In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a result of running commands in ``this'' crontab. If MAILTO is defined (and non-empty), mail is sent to the user so named. If MAILTO is defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is sent to the owner of the crontab. This option is useful if you decide on /bin/mail instead of /usr/lib/sendmail as your mailer when you install cron -- /bin/mail doesn't do aliasing, and UUCP usually doesn't read its mail. То есть, почта вообще ходить не будет (из крона на рута:), если Вы правильно напишете, что нужно... > > И напишите, что Вы пишете там.. или весь crontab... > > Ну весь конечно не буду, а вот то что не работает: > > .... > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > .... Ещё кусок из мана. EXAMPLE CRON FILE # use /bin/sh to run commands, no matter what /etc/passwd says SHELL=/bin/sh # mail any output to `paul', no matter whose # crontab this is MAILTO=paul # # run five minutes after # midnight, every day 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 То есть, всё должно работать. Не знаю.. ps. Можно руту и .procmailrc прописать -- тот парень точно в /dev/null сумеет отправить :-) > > -- > Best regards! > Igor Solovyov > System/network administrator > JSC CB "Zlatkombank" -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk "What people have been reduced to are mere 3-D representations of their own data." -- Arthur Miller ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-13 6:15 ` Dmytro O. Redchuk @ 2003-08-13 7:09 ` Igor Solovyov 2003-08-13 7:50 ` Maxim.Savrilov 0 siblings, 1 reply; 29+ messages in thread From: Igor Solovyov @ 2003-08-13 7:09 UTC (permalink / raw) To: community Hi! On Wed, 13 Aug 2003 09:15:35 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > Кусок из мана: > > In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if > it has any reason to send mail as a result of running commands in > ``this'' crontab. If MAILTO is defined (and non-empty), mail is sent > to the user so named. If MAILTO is defined but empty (MAILTO=""), no > mail will be sent. Otherwise mail is sent to the owner of the crontab. > This option is useful if you decide on /bin/mail instead of > /usr/lib/sendmail as your mailer when you install cron -- /bin/mail > doesn't do aliasing, and UUCP usually doesn't read its mail. > > То есть, почта вообще ходить не будет (из крона на рута:), если Вы > правильно напишете, что нужно... Это не выход из проблемы, поскольку будет действовать вообще для всех заданий. А мне так не надо. Надо только конкретное задание оставить без почтового уведомления. > Ещё кусок из мана. > > 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 Я это видел. Но почему-то у меня это не работает. :-( > То есть, всё должно работать. Не знаю.. > > ps. Можно руту и .procmailrc прописать -- тот парень точно в /dev/null > сумеет отправить :-) Thnks. Попробую с этим разобраться. -- Best regards! Igor Solovyov System/network administrator JSC CB "Zlatkombank" ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-13 7:09 ` Igor Solovyov @ 2003-08-13 7:50 ` Maxim.Savrilov 2003-08-13 8:18 ` [Comm] crontab Vitaly Ostanin 0 siblings, 1 reply; 29+ messages in thread From: Maxim.Savrilov @ 2003-08-13 7:50 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 528 bytes --] On Wed, 13 Aug 2003 13:09:57 +0600 Igor Solovyov <gosha@zkb.ru> wrote: > > Это не выход из проблемы, поскольку будет действовать вообще для > всех заданий. А мне так не надо. Надо только конкретное задание > оставить без почтового уведомления. > > > Ещё кусок из мана. > > > > 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 > > Я это видел. Но почему-то у меня это не работает. :-( 5 0 * * * $HOME/bin/daily.job &> /dev/null а так? -- Некоторые пожилые граждане бывают опасны для нападающих. [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 29+ messages in thread
* [Comm] Re: crontab 2003-08-13 7:50 ` Maxim.Savrilov @ 2003-08-13 8:18 ` Vitaly Ostanin 2003-08-13 10:42 ` Igor Solovyov 0 siblings, 1 reply; 29+ messages in thread From: Vitaly Ostanin @ 2003-08-13 8:18 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 759 bytes --] On Wed, 13 Aug 2003 14:50:14 +0700 Maxim.Savrilov@socenter.ru wrote: > On Wed, 13 Aug 2003 13:09:57 +0600 > Igor Solovyov <gosha@zkb.ru> wrote: > > > > > Это не выход из проблемы, поскольку будет действовать вообще > > для всех заданий. А мне так не надо. Надо только конкретное > > задание оставить без почтового уведомления. > > > > > Ещё кусок из мана. > > > > > > 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 > > > > Я это видел. Но почему-то у меня это не работает. :-( > > 5 0 * * * $HOME/bin/daily.job &> /dev/null > а так? Не помню начало треда, может, уже говорили. Нужно убедиться, что переменная HOME определена для задания. <skipped/> -- Regards, Vyt mailto: vyt@vzljot.ru JID: vyt@vzljot.ru [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 8:18 ` [Comm] crontab Vitaly Ostanin @ 2003-08-13 10:42 ` Igor Solovyov 2003-08-13 10:42 ` Shawkat 0 siblings, 1 reply; 29+ messages in thread From: Igor Solovyov @ 2003-08-13 10:42 UTC (permalink / raw) To: community Hi! On Wed, 13 Aug 2003 12:18:38 +0400 Vitaly Ostanin <vyt@vzljot.ru> wrote: > > > > 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 > > > > > > Я это видел. Но почему-то у меня это не работает. :-( > > > > 5 0 * * * $HOME/bin/daily.job &> /dev/null > > а так? > > Не помню начало треда, может, уже говорили. Нужно убедиться, что > переменная HOME определена для задания. Нет, дело не в этом. Я HOME вообще не пользуюсь. Не работает такая строка: 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 ни такая: 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null -- Best regards! Igor Solovyov System/network administrator JSC CB "Zlatkombank" ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 10:42 ` Igor Solovyov @ 2003-08-13 10:42 ` Shawkat 2003-08-13 12:34 ` Леутин Александр 0 siblings, 1 reply; 29+ messages in thread From: Shawkat @ 2003-08-13 10:42 UTC (permalink / raw) To: community > Нет, дело не в этом. Я HOME вообще не пользуюсь. > Не работает такая строка: > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > ни такая: > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null С чем то подобным я сталкивался. Дело наверно в том что крон берет параметры разделенные пробелами, таким образом вышеозначенные команды расматриваются как два параметра (а не как одна длинная команда). Может вам кавычить надо ? Или нужную вам команду с параметрами сделать скриптом а вызывать в кроне уже просто этот скрипт ? ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 10:42 ` Shawkat @ 2003-08-13 12:34 ` Леутин Александр 2003-08-13 12:44 ` Dmytro O. Redchuk 2003-08-14 3:34 ` Gosha 0 siblings, 2 replies; 29+ messages in thread From: Леутин Александр @ 2003-08-13 12:34 UTC (permalink / raw) To: community * Shawkat <shawkat@samitc.uzsci.net> Wed, 13 Aug 2003 15:42:18 +0500 > > Нет, дело не в этом. Я HOME вообще не пользуюсь. > > Не работает такая строка: > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > > ни такая: > > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > С чем то подобным я сталкивался. Дело наверно в том что крон берет > параметры разделенные пробелами, таким образом вышеозначенные команды > расматриваются как два параметра (а не как одна длинная команда). > Может вам кавычить надо ? Или нужную вам команду с параметрами сделать > скриптом а вызывать в кроне уже просто этот скрипт ? нет, это роли не играет. Я и Дмитрий Редчук прислали работающие примеры без кавычек. Может, /root/tunnel выводит не в stdout? Но stderr мы ведь тоже в null пустили... -- Леутин Александр leutin@rambler.ru Registered Linux user #295797 Жизнь - смертельно интересная штука... ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 12:34 ` Леутин Александр @ 2003-08-13 12:44 ` Dmytro O. Redchuk 2003-08-14 3:10 ` Gosha 2003-08-14 3:34 ` Gosha 1 sibling, 1 reply; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-13 12:44 UTC (permalink / raw) To: community On Wed, Aug 13, 2003 at 06:34:26PM +0600, Леутин Александр wrote: > * Shawkat <shawkat@samitc.uzsci.net> Wed, 13 Aug 2003 15:42:18 +0500 > > > > Нет, дело не в этом. Я HOME вообще не пользуюсь. > > > Не работает такая строка: > > > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > > > > ни такая: > > > > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > > > С чем то подобным я сталкивался. Дело наверно в том что крон берет > > параметры разделенные пробелами, таким образом вышеозначенные команды > > расматриваются как два параметра (а не как одна длинная команда). > > Может вам кавычить надо ? Или нужную вам команду с параметрами сделать > > скриптом а вызывать в кроне уже просто этот скрипт ? > нет, это роли не играет. Я и Дмитрий Редчук прислали работающие примеры > без кавычек. Может, /root/tunnel выводит не в stdout? Но stderr мы ведь > тоже в null пустили... Хм... :-) А что приходит-то по почте?-) > > -- > Леутин Александр leutin@rambler.ru > Registered Linux user #295797 > Жизнь - смертельно интересная штука... -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk There's no such thing as a free lunch. -- Milton Friendman ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 12:44 ` Dmytro O. Redchuk @ 2003-08-14 3:10 ` Gosha 0 siblings, 0 replies; 29+ messages in thread From: Gosha @ 2003-08-14 3:10 UTC (permalink / raw) To: community Hi! On Wed, 13 Aug 2003 15:44:45 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > On Wed, Aug 13, 2003 at 06:34:26PM +0600, Леутин Александр wrote: > > * Shawkat <shawkat@samitc.uzsci.net> Wed, 13 Aug 2003 15:42:18 +0500 > > > > > > Нет, дело не в этом. Я HOME вообще не пользуюсь. > > > > Не работает такая строка: > > > > > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > > > > > > ни такая: > > > > > > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > > > > > С чем то подобным я сталкивался. Дело наверно в том что крон берет > > > параметры разделенные пробелами, таким образом вышеозначенные > > > команды расматриваются как два параметра (а не как одна длинная > > > команда). Может вам кавычить надо ? Или нужную вам команду с > > > параметрами сделать скриптом а вызывать в кроне уже просто этот > > > скрипт ? > > нет, это роли не играет. Я и Дмитрий Редчук прислали работающие > > примеры без кавычек. Может, /root/tunnel выводит не в stdout? Но > > stderr мы ведь тоже в null пустили... > Хм... > :-) > > А что приходит-то по почте?-) Вот это: Stopping tunel: [ OK ] Picking up IPsec configuration: [ OK ] Stopping IPsec: [ OK ] Starting tunel: [ OK ] Picking up IPsec configuration: [ OK ] Starting IPsec: [ OK ] -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-13 12:34 ` Леутин Александр 2003-08-13 12:44 ` Dmytro O. Redchuk @ 2003-08-14 3:34 ` Gosha 2003-08-14 4:40 ` Леутин Александр 2003-08-14 5:53 ` Dmytro O. Redchuk 1 sibling, 2 replies; 29+ messages in thread From: Gosha @ 2003-08-14 3:34 UTC (permalink / raw) To: community Hi! On Wed, 13 Aug 2003 18:34:26 +0600 Леутин Александр <leutin-lists@rambler.ru> wrote: > * Shawkat <shawkat@samitc.uzsci.net> Wed, 13 Aug 2003 15:42:18 +0500 > > > > Не работает такая строка: > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > ни такая: > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > > ..... Я и Дмитрий Редчук прислали работающие > примеры без кавычек. Может, /root/tunnel выводит не в stdout? Но > stderr мы ведь тоже в null пустили... Во как работает: */30 8-18 * * 1-5 /root/tunnel restart 2>&1 > /dev/nul ман баш форева! :-))) -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-14 3:34 ` Gosha @ 2003-08-14 4:40 ` Леутин Александр 2003-08-14 5:53 ` Dmytro O. Redchuk 1 sibling, 0 replies; 29+ messages in thread From: Леутин Александр @ 2003-08-14 4:40 UTC (permalink / raw) To: community * Gosha <gosha@zkb.ru> Thu, 14 Aug 2003 09:34:30 +0600 > > > > Не работает такая строка: > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > > ни такая: > > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > > > > ..... Я и Дмитрий Редчук прислали работающие > > примеры без кавычек. Может, /root/tunnel выводит не в stdout? Но > > stderr мы ведь тоже в null пустили... > > Во как работает: > > */30 8-18 * * 1-5 /root/tunnel restart 2>&1 > /dev/nul > > ман баш форева! :-))) Хм.. Я думал, у моей команды тот же смысл: заворачивать сначала stdin, а потом и stdout в /dev/null. В чём я неправ? Ведь команда "ls > dirlist 2>&1" делает то же самое: directs both standard output and standard error to the file dirlist, -- Леутин Александр leutin@rambler.ru Registered Linux user #295797 Жизнь - смертельно интересная штука... ^ permalink raw reply [flat|nested] 29+ messages in thread
* [Comm] Re: crontab 2003-08-14 3:34 ` Gosha 2003-08-14 4:40 ` Леутин Александр @ 2003-08-14 5:53 ` Dmytro O. Redchuk 2003-08-14 6:46 ` Gosha 1 sibling, 1 reply; 29+ messages in thread From: Dmytro O. Redchuk @ 2003-08-14 5:53 UTC (permalink / raw) To: community On Thu, Aug 14, 2003 at 09:34:30AM +0600, Gosha wrote: > Hi! > On Wed, 13 Aug 2003 18:34:26 +0600 > Леутин Александр <leutin-lists@rambler.ru> wrote: > > > * Shawkat <shawkat@samitc.uzsci.net> Wed, 13 Aug 2003 15:42:18 +0500 > > > > > > Не работает такая строка: > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > > > > ни такая: > > > > 30 7 * * 1-5 /root/tunnel restart > /dev/null 2>/dev/null > > > > > ..... Я и Дмитрий Редчук прислали работающие > > примеры без кавычек. Может, /root/tunnel выводит не в stdout? Но > > stderr мы ведь тоже в null пустили... > > Во как работает: > > */30 8-18 * * 1-5 /root/tunnel restart 2>&1 > /dev/nul > > ман баш форева! :-))) Умгу... И, что, так и не работал пример из man 5 crontab ? > > -- > Best regards! > Igor Solovyov > System/Network administrator > JSC CB "Zlatkombank", Zlatoust, Russia -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk A man said to the Universe: "Sir, I exist!" "However," replied the Universe, "the fact has not created in me a sense of obligation." -- Stephen Crane ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] Re: crontab 2003-08-14 5:53 ` Dmytro O. Redchuk @ 2003-08-14 6:46 ` Gosha 0 siblings, 0 replies; 29+ messages in thread From: Gosha @ 2003-08-14 6:46 UTC (permalink / raw) To: community Hi! On Thu, 14 Aug 2003 08:53:40 +0300 "Dmytro O. Redchuk" <dor@kiev-online.net> wrote: > > > > > Не работает такая строка: > > > > > 30 7 * * 1-5 /root/tunnel redirect >> /root/tmp/out 2>&1 > Умгу... > > И, что, так и не работал пример из man 5 crontab ? Ну если считать, что приведенный в начале пример, соответствует мановскому, то - почему-то нет. Хотя вроде должно работать. :-( -- Best regards! Igor Solovyov System/Network administrator JSC CB "Zlatkombank", Zlatoust, Russia ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-12 6:10 ` Gosha 2003-08-12 6:47 ` Dmytro O. Redchuk @ 2003-08-12 8:41 ` Леутин Александр 1 sibling, 0 replies; 29+ messages in thread From: Леутин Александр @ 2003-08-12 8:41 UTC (permalink / raw) To: community * Gosha <gosha@zkb.ru> Tue, 12 Aug 2003 12:10:32 +0600 > Hi! > On Tue, 12 Aug 2003 10:21:31 +0600 > Леутин Александр <leutin-lists@rambler.ru> wrote: > > > > > Дописать в crontab >/dev/null 2>/dev/null :-)) > > > не, man crontab лучше > > Тот способ бесполезен, если требуется не посылать отчёт о каком-либо > > одном задании. > > Но и этот способ оказался не работающим. > Письма приходят все равно. > :-( у меня одно из заданий в рутовом кронтабе 0,15,30,45 * * * /netup/utm/bin/tsave >/dev/null 2>/dev/null по логам видно, что отрабатывается, однако писем нет. cron из ALM2.2. -- Леутин Александр leutin@rambler.ru Registered Linux user #295797 Жизнь - смертельно интересная штука... ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [Comm] crontab 2003-08-11 5:38 ` Леутин Александр 2003-08-11 5:43 ` Dmytro O. Redchuk @ 2003-08-11 12:14 ` Igor Solovyov 1 sibling, 0 replies; 29+ messages in thread From: Igor Solovyov @ 2003-08-11 12:14 UTC (permalink / raw) To: community Hi! On Mon, 11 Aug 2003 11:38:55 +0600 Леутин Александр <leutin-lists@rambler.ru> wrote: > > Подскажите плиз, как сделать так, чтобы руту не присылались > > письма о задачке, запускаемой по крону. > > Дописать в crontab >/dev/null 2>/dev/null :-)) Thnks. -- Best regards! Igor Solovyov System/network administrator JSC CB "Zlatkombank" ^ permalink raw reply [flat|nested] 29+ messages in thread
end of thread, other threads:[~2003-08-14 6:46 UTC | newest] Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-08-11 4:46 [Comm] crontab Gosha 2003-08-11 5:18 ` Maxim.Savrilov 2003-08-11 5:42 ` Dmytro O. Redchuk 2003-08-11 5:38 ` Леутин Александр 2003-08-11 5:43 ` Dmytro O. Redchuk 2003-08-11 12:16 ` Igor Solovyov 2003-08-12 2:30 ` Maxim.Savrilov 2003-08-12 3:04 ` Gosha 2003-08-12 4:21 ` Леутин Александр 2003-08-12 5:53 ` Dmytro O. Redchuk 2003-08-12 6:12 ` Gosha 2003-08-12 6:10 ` Gosha 2003-08-12 6:47 ` Dmytro O. Redchuk 2003-08-12 16:19 ` Igor Solovyov 2003-08-13 6:15 ` Dmytro O. Redchuk 2003-08-13 7:09 ` Igor Solovyov 2003-08-13 7:50 ` Maxim.Savrilov 2003-08-13 8:18 ` [Comm] crontab Vitaly Ostanin 2003-08-13 10:42 ` Igor Solovyov 2003-08-13 10:42 ` Shawkat 2003-08-13 12:34 ` Леутин Александр 2003-08-13 12:44 ` Dmytro O. Redchuk 2003-08-14 3:10 ` Gosha 2003-08-14 3:34 ` Gosha 2003-08-14 4:40 ` Леутин Александр 2003-08-14 5:53 ` Dmytro O. Redchuk 2003-08-14 6:46 ` Gosha 2003-08-12 8:41 ` [Comm] crontab Леутин Александр 2003-08-11 12:14 ` Igor Solovyov
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