How to run multiple lines using python -c
<p>I need to use <code>python -c</code> to remotely run some code, it works when I use:</p>

<pre><code>python -c "a=4;print a"
4
</code></pre>

<p>Or </p>

<pre><code>python -c "if True:print 'ye'"
</code></pre>

<p>But <code>python -c "a=4;if a&lt;5:print 'ye'"</code> will generate an error:</p>

<pre><code>File "&lt;string&gt;", line 1
    a=4;if a&lt;5:print 'ye'
    SyntaxError: invalid syntax
</code></pre>

<p>What should I do to make it work, any advice?</p>
