From: bd@bc-bd.org
To: dash@vger.kernel.org
Subject: How to pass parameters containig options from variables
Date: Tue, 25 Sep 2012 10:47:29 +0200 [thread overview]
Message-ID: <20120925084729.GG17149@bc-bd.org> (raw)
Hello list,
I am trying to pass these arguments
-N -p -F "not host foo"
to a binary, but
ARGS="-N -p -F 'not host foo'"
$DAEMON $ARGS
get's passed as 6 arguments and not 4.
Using xargs this works, but I'd like to not introduce that dependency:
ARGS="-N -p -F 'not host foo'"
echo $ARGS | xargs $DAEMON
Now for the complete picture, it's the init script for arpwatch. Options that
should be passed to arpwatch can be specified by the sysadm in
/etc/default/arpwatch with is sourced by the initscript and then passed (via
start-stop-daemon) to the arpwatch binary.
This is on debian stable, package version 0.5.5.1-7.4
Stefan
--
Reader, suppose you were an idiot. And suppose you were a member of
Congress. But I repeat myself.
-- Mark Twain
next reply other threads:[~2012-09-25 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 8:47 bd [this message]
2012-09-25 13:21 ` How to pass parameters containig options from variables Olof Johansson
2012-09-25 16:28 ` bd
2012-09-25 16:48 ` Paul Gilmartin
2012-09-25 18:55 ` Harald van Dijk
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=20120925084729.GG17149@bc-bd.org \
--to=bd@bc-bd.org \
--cc=dash@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).