Thanks a lot, I've managed to make it work they way I wanted
--
https://mail.python.org/mailman/listinfo/python-list
On 07/09/18 13:55, catanaang...@gmail.com wrote:
HI! I need help putting the output from terminal in a csv file. I work on linux
and I have python 2.7.15. I am running a python program which also runs some
shell scripts.
I need to capture the output from the .sh scripts and put it nicely in a
Please study the following to get you started. It looks like JSON output that
you are dealing,
which is good. I added a ", to the "body"-line, because I assume that you
botched that when giving
an example.
```python
#!/usr/bin/env python
import json
output = '''
{
"error" : {
"body"
HI! I need help putting the output from terminal in a csv file. I work on linux
and I have python 2.7.15. I am running a python program which also runs some
shell scripts.
I need to capture the output from the .sh scripts and put it nicely in a csv
table. I am using "commands.getoutput('bash ex