Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by glenn jackman for Incomplete output from Python command in a Bash script

Why do you run the python program, capture the output, then echo the (unquoted) output? Just do

/usr/local/bin/python3 /home/tech2/myscript_v3_4-3.py -rs > /home/tech2/weeklyreportoutput.txt

One of the main problems with your approach is that newlines will replaced by spaces.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>