ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Aidar Garafiev <garafiev@nzh.ieml.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] Проблема с cron в VE
Date: Wed, 27 Jan 2010 14:23:23 +0300
Message-ID: <4B60222B.60802@nzh.ieml.ru> (raw)

Доброго времени суток, Уважаемые коллеги!!!

Возникли определенные трудности по настройке cron'а в ve.
Ситуация следующая:
При помощи crontab -e root'ом добавил запись (потому что прав обычного 
пользователя недостаточно для успешного выполнения скрипта. Получилась 
следующая таблица:

[root@kav-upd /]# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/root/tmp/crontab.3S1ADK installed on Wed Jan 27 14:01:14 2010)
# (Cron version V5.0 -- vixie-cron-4.1.20060426-alt3)
#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
*/3     *       *       *       *       date >> /root/fuck
*       *       *       *       *       /root/kav-upd

Команда date >> /root/fuck выполняется, а вот скрипт /root/kav-upd со 
следующими правами

[root@kav-upd /]# ls -l /root/kav-upd
-rwxr-xr-x 1 root crontab 84 Jan 27 13:26 /root/kav-upd

и следующего содержания

#!/bin/sh
/usr/bin/rsync -avz rsync://192.168.1.2/kavupdates -o /var/ftp/kavupdates

не выполняется а в логах видим следующую картину:
[root@kav-upd /]# tail -n 20 /var/log/cron/info
Jan 27 14:08:01 kav-upd crond[1585]: (root) MAIL (mailed 130 bytes of 
output but got status 0xffffffff )
Jan 27 14:09:01 kav-upd crond[1599]: (root) CMD (date >> /root/fuck)
Jan 27 14:09:01 kav-upd crond[1598]: (root) CMD (/root/kav-upd)
Jan 27 14:09:01 kav-upd crond[1594]: (root) MAIL (mailed 131 bytes of 
output but got status 0xffffffff )
Jan 27 14:10:00 kav-upd crond[1609]: (root) CMD (/root/kav-upd)
Jan 27 14:10:01 kav-upd crond[1607]: (root) MAIL (mailed 130 bytes of 
output but got status 0xffffffff )
Jan 27 14:11:01 kav-upd crond[1658]: (root) CMD (/root/kav-upd)
Jan 27 14:11:01 kav-upd crond[1656]: (root) MAIL (mailed 131 bytes of 
output but got status 0xffffffff )
Jan 27 14:12:00 kav-upd crond[1667]: (root) CMD (/root/kav-upd)
Jan 27 14:12:00 kav-upd crond[1671]: (root) CMD (date >> /root/fuck)
Jan 27 14:12:01 kav-upd crond[1665]: (root) MAIL (mailed 130 bytes of 
output but got status 0xffffffff )
Jan 27 14:13:01 kav-upd crond[1681]: (root) CMD (/root/kav-upd)
Jan 27 14:13:03 kav-upd crond[1679]: (root) MAIL (mailed 130 bytes of 
output but got status 0xffffffff )
Jan 27 14:14:01 kav-upd crond[1693]: (root) CMD (/root/kav-upd)
Jan 27 14:14:01 kav-upd crond[1691]: (root) MAIL (mailed 131 bytes of 
output but got status 0xffffffff )
Jan 27 14:15:01 kav-upd crond[1705]: (root) CMD (date >> /root/fuck)
Jan 27 14:15:01 kav-upd crond[1707]: (root) CMD (/root/kav-upd)
Jan 27 14:15:01 kav-upd crond[1701]: (root) MAIL (mailed 131 bytes of 
output but got status 0xffffffff )
Jan 27 14:16:00 kav-upd crond[1755]: (root) CMD (/root/kav-upd)
Jan 27 14:16:00 kav-upd crond[1753]: (root) MAIL (mailed 131 bytes of 
output but got status 0xffffffff )

Подскажите, куда копать, что неправильно!!! Уже не знаю куда лезть, что 
править.

Заранее благодарен за содействие!!!


             reply	other threads:[~2010-01-27 11:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-27 11:23 Aidar Garafiev [this message]
2010-01-27 12:03 ` Соломонов Сергей
2010-01-27 12:07   ` [Sysadmins] [--Obscene--] " Aidar Garafiev
2010-01-27 12:18     ` Aidar Garafiev
2010-01-27 14:24       ` Соломонов Сергей
2010-01-27 14:55         ` Andrey Rahmatullin
2010-01-27 15:10           ` Denis Nazarov
2010-01-28  7:12             ` Aidar Garafiev
2010-01-28  8:15               ` Mikhail A. Pokidko
2010-01-30 12:21               ` Денис Смирнов
2010-02-11 21:29                 ` [Sysadmins] " Michael Shigorin
2010-02-13 16:54                   ` Денис Смирнов

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B60222B.60802@nzh.ieml.ru \
    --to=garafiev@nzh.ieml.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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