Hi all, I have a question regarding the use of Python.
How do i run a command line command using Python? And after running the command, how do i save the returned values?
For example:
user@home:~$: ls -l
drwxr-xr-x 3 root root 4096 ..[etc] home
-rw-r--r-- 1 user user 357 ..[etc] examples.doc
So what i intend to do, is to run the command ls -l and than save the response into a database using Python.
I intend to implement the above example in Django.
May I know if it is possible? What kind of commands I cannot execute?
How do i implement it?
Any links, tutorials, advice is more than welcome!
Best Regards.