From: "Хихин Руслан" <hihin@rambler.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] присваивание команды переменной в bash
Date: Fri, 15 Apr 2011 21:31:56 +0400
Message-ID: <201104152132.01447@ruslandh> (raw)
In-Reply-To: <4DA873BF.900@mail.ru>
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
Здравствуйте Oleg
В сообщении от 15 апреля 2011 Oleg написал(a):
> /usr/local/bin/sendEmail -f Rbackup@my.domain -t op@my.domain
> -u "R backup - ERROR" -o message-charset=UTF-8 -m "ERROR"
Вместо /usr/local/bin/sendEmail кладу скрипт:
#!/bin/bash
echo args= $*
Вызываю из скрипта
....
test='/usr/local/bin/sendEmail -f Rbackup@my.domain -t
op@my.domain -u "R backup - ERROR"
$test
....
Получаю
./ss.dh
args= -f Rbackup@my.domain -t op@my.domain -u "R backup -
ERROR" -o message-charset=UTF-8 -m "ERROR"
Всё работает.
--
А ещё говорят так (fortune):
Without ice cream life and fame are meaningless.
________________________________________________________________________
С уважением Хихин Руслан
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-04-15 17:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-14 13:23 ` Anton Gorlov
2011-04-14 13:32 ` Oleg
2011-04-14 13:39 ` Anton Gorlov
2011-04-15 13:39 ` Oleg
2011-04-15 13:59 ` Хихин Руслан
2011-04-15 14:31 ` Oleg
2011-04-15 15:04 ` Хихин Руслан
2011-04-15 16:35 ` Oleg
2011-04-15 17:31 ` Хихин Руслан [this message]
2011-04-15 18:03 ` Oleg
2011-04-15 19:02 ` Хихин Руслан
2011-04-15 20:45 ` Sergey Shilov
2011-04-14 13:40 ` Тимур Васюнин
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=201104152132.01447@ruslandh \
--to=hihin@rambler.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