[IPython-dev] ipython bash interaction?

Francesco Montesano franz.bergesund at gmail.com
Wed Sep 25 12:45:21 EDT 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 at 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 at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130925/7db6ff0b/attachment.html>


More information about the IPython-dev mailing list