Search code examples
pythonbashinteroplanguage-interoperability

Embed bash in python


I am writting a Python script and I am running out of time. I need to do some things that I know pretty well in bash, so I just wonder how can I embed some bash lines into a Python script.

Thanks


Solution

  • If you want to call system commands, use the subprocess module.