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_shell_script_trough_ssh [2016/10/13 19:13]
iggy.ttt@gmail.com
wiki:infrastructure_tools:ssh:ssh-run_shell_script_trough_ssh [2016/10/13 19:14] (current)
iggy.ttt@gmail.com
Line 14: Line 14:
 In this case we'll need to understend several points to use this kind of integration. In this case we'll need to understend several points to use this kind of integration.
  
-==== Basic syntax ​ ====+==== Connect to remote server ==== 
 + 
 +To connect to remote server wi'll use openSSH. After connecting to  remote server we'll start shell interpreter,​ so that we can exacute ​ remote commands. 
 + 
 +==== Basic syntax ====
  
 The idea here is to: The idea here is to:
Line 22: Line 26:
     * Use output file (with help of pipe) as STDOU     * Use output file (with help of pipe) as STDOU
  
-**__Simple Example:​__ ​ **+**__Simple Example:​__ ​  ​**
  
 <​code>​ <​code>​
Line 41: Line 45:
                                                           # EOL - Terminate SSH session                                                           # EOL - Terminate SSH session
 </​code>​ </​code>​
- 
-==== Connect to remote server ==== 
- 
-To connect to remote server wi'll use openSSH. After connecting to remote server we'll start shell interpreter,​ so that we can exacute remote commands. 
  
 ==== Variables ==== ==== Variables ====
Line 61: Line 61:
 At the time when the variable will be sent to SSH server it will be interpreted to his value. At the time when the variable will be sent to SSH server it will be interpreted to his value.
  
-__**Example - Script that will use local Client Variable on SSH Server:​** ​   __+__**Example - Script that will use local Client Variable on SSH Server:​** ​    ​__
  
 <​code>​ <​code>​
Line 73: Line 73:
 </​code>​ </​code>​
  
-__**Result - This will be present at output file:​** ​   __+__**Result - This will be present at output file:​** ​    ​__
  
 <​code>​ <​code>​
Line 84: Line 84:
 In the case that you’d like to create variable on remote server and use it on remote server. It’s important to keep in mind that you need to escape the “$” character with “<​nowiki>​\</​nowiki>​” before you’d like to use it. In the case that you’d like to create variable on remote server and use it on remote server. It’s important to keep in mind that you need to escape the “$” character with “<​nowiki>​\</​nowiki>​” before you’d like to use it.
  
-__**Example - Script that will use Remote Variable on SSH Server:​** ​  ​__+__**Example - Script that will use Remote Variable on SSH Server:​** ​   __
  
 <​code>​ <​code>​
Line 101: Line 101:
 </​code>​ </​code>​
  
-__**Result - This will be present at output file:​** ​ __+__**Result - This will be present at output file:​** ​  ​__
  
 <​code>​ <​code>​
Navigation
Print/export
QR Code
QR Code wiki:infrastructure_tools:ssh:ssh-run_shell_script_trough_ssh (generated for current page)