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
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html