-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
  • 8,468
  • 14
  • 46
  • 86
user1118764
  • 8,597
  • 18
  • 57
  • 100

1 Answers1

2

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

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