I am trying to automate the aws instance setup using boto. I have a python script in which I will do the ssh to the instance. After ssh,I am executing a python function which is in remote python file using shell command( python -c "filename").I am unable to get the output until the python execution gets complete. How can we get the real time output then and there from the remote python script?
Asked
Active
Viewed 835 times
1 Answers
1
You can try this:
ssh -q -o StrictHostKeyChecking=no user@host "python -c python-script.py"
Peycho Dimitrov
- 1,218
- 10
- 10