Re: nsenter: passing command arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
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




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux