문제

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

도움이 되었습니까?

해결책

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

sh run-python-scripts.sh
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top