-1

I'm trying to run python on a curl output without actually downloading the file onto the system.

So instead of doing the following:

wget 1.2.3.4/mypythonfile.py
python mypythonfile.py

I'd like to be able to do something like python | (curl 1.2.3.4/mypythonfile.py).

The above command doesn't work by the way.

How would I do that?

pushkin
  • 9,575
  • 15
  • 51
  • 95
user1118764
  • 9,255
  • 18
  • 61
  • 113

1 Answers1

3

Instead of python | (curl 1.2.3.4/mypythonfile.py), do this

curl 1.2.3.4/mypythonfile.py | python -
jat
  • 106
  • 1
  • 8