Gosu Carpenter | 16 Jul 01:13

Arbitrary shell command execution

I know ipython has several versions of basic shell commands - ls, cd, cp, mkdir, etc, but is there a way to run *any* command that is valid in your shell, including programs?
_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
Benjamin Racine | 16 Jul 01:21

Re: Arbitrary shell command execution

i don't know this for a fact, but i thought that prepending your command
with a ! or !! (on unix) does the trick.

my source...
http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html?page=2 

>>> "Gosu Carpenter" <gosucarpenter <at> gmail.com> 07/15/08 4:16 PM >>>
I know ipython has several versions of basic shell commands - ls, cd,
cp,
mkdir, etc, but is there a way to run *any* command that is valid in
your
shell, including programs?
Fernando Perez | 16 Jul 08:22

Re: Arbitrary shell command execution

On Tue, Jul 15, 2008 at 4:16 PM, Gosu Carpenter <gosucarpenter <at> gmail.com> wrote:
> I know ipython has several versions of basic shell commands - ls, cd, cp,
> mkdir, etc, but is there a way to run *any* command that is valid in your
> shell, including programs?

You can also type %rehashx which does:

Definition:     %rehashx(self, parameter_s='')
Docstring:
    Update the alias table with all executable files in $PATH.

Type %rehashx? for full details.

Cheers,

f

Gmane