Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:infrastructure_tools:ssh:ssh-run_local_python_script_on_remote_server [2015/03/27 13:41]
iggy.ttt@gmail.com [Script – located on SSH Client]
wiki:infrastructure_tools:ssh:ssh-run_local_python_script_on_remote_server [2015/03/27 13:44] (current)
iggy.ttt@gmail.com [Execute local Python Script on remote SSH Server]
Line 24: Line 24:
 - To start “python” on Remote SSH Server, that will listen at standard input (STDIN)\\ - To start “python” on Remote SSH Server, that will listen at standard input (STDIN)\\
 - To read the script and transfer each command with help of SSH, to python that is listening on remote SSH server. - To read the script and transfer each command with help of SSH, to python that is listening on remote SSH server.
 +
 +==== Example ====
 +
 +<​code>​
 +[root@SSH_Client ~]# ssh root@SSH_Server "​python - " <​./​script.py
 +SSH_Server
 +</​code>​
  
Navigation
Print/export
QR Code
QR Code wiki:infrastructure_tools:ssh:ssh-run_local_python_script_on_remote_server (generated for current page)