Changes between Version 15 and Version 16 of GENIExperimenter/Tutorials/ClickExample/Execute
- Timestamp:
- 03/18/13 07:42:58 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/ClickExample/Execute
v15 v16 51 51 }}} 52 52 === Test remote execution === 53 You can execute commands in a remote host using `ssh`. T o do this just follow your ssh command with the command you want to execute in quotes.53 You can execute commands in a remote host using `ssh`. There is an omni script, `remote-execute.py` that automates this. 54 54 i. In your local terminal type : 55 55 {{{ 56 ssh -A top "ls -a" 57 }}} 58 This will list all the files under the home directory on host `top`. The output should look like: 59 {{{ 60 geni@geni-VirtualBox:~$ ssh -A top "ls -a" 61 . 62 .. 63 .bash_logout 64 .bash_profile 65 .bashrc 66 .forward 67 .kshrc 68 .ssh 69 .zshrc 70 }}} 56 remote-execute.py -a pg-utah <slicename> -m "ls -a" 57 }}} 58 This will list all the files under the home directory of all hosts. 71 59 72 60 If you get something similar you are all set for controlling your nodes from your computer.