[IPython-dev] ipython bash interaction?

Francesco Montesano franz.bergesund@gmail....
Wed Sep 25 11:45:21 CDT 2013


do you get an error if you run it with
!/bin/bash myscript
?

fra
Il giorno 25/set/2013 17:45, "Zoltán Vörös" <zvoros@gmail.com> ha scritto:

> Hi all,
>
> I have a trivial question: how does the ipython console interact with
> bash (or the operating system, for that matter)? I can use system
> commands with e.g.,
>
> In [] : !date
> Wed Sep 25 17:42:33 CEST 2013
>
> but this fails:
>
> In [] : !myscript
> /bin/sh: 1: myscript: not found
>
> where myscript is a bash script in a directory that is in the path. From
> the system console, I can run myscript without any problems, no matter
> where I am. Is it not the case that everything after an ! is passed to
> the underlying system? Or is there something that has to be configured?
>
> Cheers,
> Zoltán
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130925/7db6ff0b/attachment.html 


More information about the IPython-dev mailing list