Getting a list by sys.argv
<p>I pass mylist as an argument to be get after by sys.argv I do this:</p>

<pre><code>mylist = str(list)
nbre = str(nbre)
comm = 'python2.6 file.py ' + mylist + ' ' + nbre + ' &amp;'
os.system(comm)
</code></pre>

<p>In <code>file.py</code>, I am expected to get <code>mylist</code> by this way and which contains <code>[machine1,machine2]</code> but when doing:</p>

<pre><code>mylist = sys.argv[1]
</code></pre>

<p>I get <code>[machine1</code>, which is wrong. When I display <code>sys.argv</code> I found:</p>

<pre><code>['file.py','[machine1,','machine2]','1']
</code></pre>

<p>I didn't understand why my list is composed like that?  </p>
