title: Run multiple commands in network namespace
body: <p>I'd like to run a series of concatenated bash commands in a network namespace in one single step, but it seems that <code>ip netns exec mynetns</code> only takes one bash command as argument.
  For instance:</p>
  
  <pre><code>ip netns exec mynetns ip a
  </code></pre>
  
  <p>...works as expected.</p>
  
  <pre><code>ip netns exec mynetns "ip a ; ip a"
  </code></pre>
  
  <p>...returns <code>exec of "ip a" failed: No such file or directory</code>.</p>
  
  <p>Clearly,</p>
  
  <pre><code>ip netns exec mynetns ip a ; ip a
  </code></pre>
  
  <p>... will return the interfaces in the network namespace and on the host machine.</p>
  
  <p>Is there a way to make it work?</p>
  
  <p>The <a href="http://man7.org/linux/man-pages/man8/ip-netns.8.html" rel="nofollow noreferrer">manual</a> only talks about one command, which is not a very good sign...</p>