ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Timur Batyrshin" <batyrshin@ieml.ru>
To: "ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] rsyncd и post-xfer exec
Date: Tue, 1 Jul 2008 21:10:01 +0400 (MSD)
Message-ID: <43302.194.85.246.60.1214932201.squirrel@webmail.ieml.ru> (raw)
In-Reply-To: <20080627181237.53f29042@batyrshin.ieml.ru>


В письме от Птн, 27 Июн 2008, 18:12 Timur Batyrshin
пишет:
> А post-xfer exec у нас в rsync нормально работает?
>
> Из странностей замечено, что не каждую
> команду он выполняет. Например,
> нельзя ей передать параметры.

Прошу прощения за то, что ввел в
заблуждение. Отрабатывает нормально.

> Т.е.
> post-xfer exec = /usr/local/bin/script
> работает нормально, а
> post-xfer exec = /usr/local/bin/script param1
> просто тупо не вызывается (проверял и
> созданием флагов при запуске
> script)

Параметры к команде лучше кавычить.
Почему -- так и не понял. Да, они потом
передаются у меня в su -c "$@". Если не
кавычить -- su не отрабатывает.

> Вторая странность -- внутрь скрипта не
> передаются переменные окружения
> такие как $RSYNC_EXIT_STATUS, $RSYNC_MODULE_NAME

Это тоже, как выяснилось, работает.



      reply	other threads:[~2008-07-01 17:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27 14:12 Timur Batyrshin
2008-07-01 17:10 ` Timur Batyrshin [this message]

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=43302.194.85.246.60.1214932201.squirrel@webmail.ieml.ru \
    --to=batyrshin@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