How to do regular BASH work in Python?

Frantisek Malina fmalina at
Thu Oct 9 16:02:53 CEST 2008

What is the best way to do the regular bash commands in native python?

- create directory
- create file
- make a symlink
- copy a file to another directory
- move a file
- set permissions

I need to write a program that creates real application/FTP accounts
and make regular backups to external disk and I think its best to do
it all consistently with my application in Python.
This way I can easily link it to the customer database and front-end
web application. I'd want to avoid BASH/SHELL if that's possible.

More information about the Python-list mailing list