Display output of a shell command
I am loggin on to SSH Shell and sending commands to server to execute python script.
send sudo su - root
send cd /tmp/puppet1
send python ./hpoo_script1.py
the output of my pyhton script is a list of servers with comma separated eg.
when I'm trying to use display message to see the output of my python script I see the output see and also the prompt on the server
How can I just diplay the output of my script getting rid of the last line " xxxxxxx01:/tmp/puppet1 #"