0

I have multiple commands in a file in the following format

    python dosomething.py arg1 arg2
    python dosomethingelse.py arg1 arg2

I want to execute one by one.

What is the elegant way of doing it.

Thanks

Shan
  • 18,563
  • 39
  • 97
  • 132
  • people what is going on, if its a duplicate, mention it and could be closed, but why the negative vote? – Shan Mar 16 '14 at 22:48

1 Answers1

1

If you have those lines in a file (say, run-python-scripts.sh), you can run it with sh:

sh run-python-scripts.sh
icktoofay
  • 126,289
  • 21
  • 250
  • 231