All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas <nicolas.delaby@ezeep.com>
To: util-linux@vger.kernel.org
Subject: Re: nsenter: passing command arguments
Date: Tue, 22 Apr 2014 09:56:14 +0200	[thread overview]
Message-ID: <5356209E.4040908@ezeep.com> (raw)
In-Reply-To: <535052E2.2010705@bernhard-voelker.de>

On 04/18/2014 12:17 AM, Bernhard Voelker wrote:
> 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.

Thank you Bernhard,

It Worked like a charm :)
Have a nice day too.

Nicolas
-- 

Nicolas Delaby · Software Engineer · ezeep.com

ezeep GmbH · Ohlauer Str. 43 · 10999 Berlin · Germany

Registry Court: Charlottenburg · HRB133318 · Managing partner: Sascha 
Kellert

      parent reply	other threads:[~2014-04-22  7:56 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
2014-04-18 11:12   ` Karel Zak
2014-04-22  7:56   ` Nicolas [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=5356209E.4040908@ezeep.com \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.