Thanks Paul,<div><br></div><div>Indeed, using <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">#!/usr/bin/env <span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 204); color: rgb(34, 34, 34); background-position: initial initial; background-repeat: initial initial; ">ipython and it worked nicely.</span></span></div>

<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 204); "></span><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Cheers,</span></font></div>

<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Alan<br>

</span></font><br><div class="gmail_quote">On 9 March 2011 21:33, Paul Ivanov <span dir="ltr">&lt;<a href="mailto:pivanov314@gmail.com">pivanov314@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Alan Wilter Sousa da Silva, on 2011-03-09 11:45,  wrote:<br>
&gt; Thanks Paul,<br>
&gt;<br>
&gt; And how to make my script executable? I mean I tried to put in my test.ipy:<br>
&gt;<br>
&gt; #!/sw/arch/bin/ipython<br>
&gt;<br>
&gt; then:<br>
&gt;<br>
&gt; chmod +x test.ipy<br>
&gt;<br>
&gt; but<br>
&gt;<br>
&gt; ./test.ipy<br>
&gt;<br>
&gt; won&#39;t work.<br>
<br>
</div>Hi Alan,<br>
<br>
what is the error message? Doing the equivalent worked for me on<br>
the current 0.10.2 git branch using python 2.6.5 (with a<br>
deprecation warning about os.popen3). Try this simple three line<br>
program and see if that works for you.<br>
<br>
$ cat tmp.ipy<br>
#!/usr/bin/env ipython<br>
message = !echo it works.<br>
print message<br>
$ ./tmp.ipy<br>
/home/pi/tmp/local/lib/python2.6/site-packages/IPython/genutils.py:437:<br>
DeprecationWarning: os.popen3 is deprecated.  Use the subprocess<br>
module.  pin,pout,perr = os.popen3(cmd)<br>
[&#39;it works.&#39;]<br>
<div><div></div><div class="h5"><br>
<br>
best,<br>
--<br>
Paul Ivanov<br>
314 address only used for lists,  off-list direct email at:<br>
<a href="http://pirsquared.org" target="_blank">http://pirsquared.org</a> | GPG/PGP key id: 0x0F3E28F7<br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk138hkACgkQe+cmRQ8+KPctDQCfRem21/Ou8EcrT/9Ix/jUM+Ys<br>
XB8An2BPU5xhvC1tgq1lS23PK5owhlm+<br>
=v3rA<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Alan Wilter SOUSA da SILVA, D.Sc.<div>Bioinformatician, UniProt - PANDA, EBI-EMBL<br>CB10 1SD, Hinxton, Cambridge, UK</div><div>+44 1223 49 4588</div><br>
</div>