ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Cron & Mail
@ 2006-08-13  0:24 Yurkovsky Andrey
  2006-08-13  7:15 ` Yuri N. Glibovetz
    0 siblings, 2 replies; 15+ messages in thread
From: Yurkovsky Andrey @ 2006-08-13  0:24 UTC (permalink / raw)
  To: ALT Community

В man cron говорится, что можно отправить отчет на mail. 
Добавил в /etc/cron.weekly скрипт следующего содержания
tar -zcvpf /mnt/archiv/backup/etc-`date 
'+%d-%m-%y'`.tar.gz /etc 2>/mnt/archiv/backup/etc-`date 
'+%d-%m-%y'`.error

Как я могу то же (всмысле stderr) отправить себе на ящик? 

Пробовал вместо вышенаписанноо писать
tar -zcvpf /mnt/archiv/backup/etc-`date 
'+%d-%m-%y'`.tar.gz /etc >> /home/anyr/tmp/out 2>&1
MAILTO="anyr"

В итоге ни черта кроме того самого out в /home/anyr/tmp

-- 
Не хочу быть пейджером, хочу быть тамогочи

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

end of thread, other threads:[~2006-09-01 20:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-13  0:24 [Comm] Cron & Mail Yurkovsky Andrey
2006-08-13  7:15 ` Yuri N. Glibovetz
2006-08-14 13:02   ` Yurkovsky Andrey
2006-08-14 10:25     ` Evgenii Terechkov
2006-08-24 18:36       ` Yurkovsky Andrey
2006-08-26 15:01         ` Olvin
2006-08-27 14:35           ` Yurkovsky Andrey
2006-08-27 12:21             ` Olvin
2006-08-28 11:03               ` Yurkovsky Andrey
2006-08-28 16:04                 ` Olvin
2006-08-28 19:03                   ` Sergei Boudnik
2006-08-29 11:49                     ` Yurkovsky Andrey
2006-08-29 14:36                   ` Yurkovsky Andrey
2006-08-29 15:27                     ` Olvin
2006-09-01 20:51                       ` Yurkovsky Andrey

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