From: Bernhard Voelker <mail@bernhard-voelker.de>
To: Nicolas <nicolas.delaby@ezeep.com>, util-linux@vger.kernel.org
Subject: Re: nsenter: passing command arguments
Date: Fri, 18 Apr 2014 00:17:06 +0200 [thread overview]
Message-ID: <535052E2.2010705@bernhard-voelker.de> (raw)
In-Reply-To: <534F91FD.4020803@ezeep.com>
On 04/17/2014 10:34 AM, Nicolas wrote:
> Hi,
> I'm struggling with nsenter to call commands with options because they
> are caught by nsenter and complain this is an invalid option.
>
> How can I pass any arbitrary argument ?
>
> Thanks for reading,
> Nicolas
>
> ```
> $ nsenter --target $PID --mount --uts --ipc --net --pid ls -a
> nsenter: invalid option -- 'a'
Use '--' to tell nsenter to stop option parsing:
$ nsenter --target $PID --mount --uts --ipc --net --pid -- ls -a
Although I think this can be considered a bug; nsenter should
do this automatically when seeing the first non-option.
Have a nice day,
Berny
next prev parent reply other threads:[~2014-04-17 22:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-17 8:34 nsenter: passing command arguments Nicolas
2014-04-17 22:17 ` Bernhard Voelker [this message]
2014-04-18 11:12 ` Karel Zak
2014-04-22 7:56 ` Nicolas
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=535052E2.2010705@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=nicolas.delaby@ezeep.com \
--cc=util-linux@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