'multiple bash commands in a single line in python
We have multiple bash commands like
cd /home/ ; ls -lrt abc* ; cp abc* /destination/ ; ....
we can run multiple commands in the bash as per above using ";"
can we run in the same way in python ? (something all the commands into a variable and execute using os or subprocess)
Is there a way to run all these commands in a single line in python
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
