https://github.com/reflexdemon/remote-ssh
https://github.com/reflexdemon/remote-ssh
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/reflexdemon/remote-ssh
- Owner: reflexdemon
- Created: 2013-10-08T10:45:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-07T01:59:28.000Z (over 12 years ago)
- Last Synced: 2025-02-23T11:41:50.851Z (over 1 year ago)
- Language: Java
- Size: 348 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
remote-ssh
==========
Installation
------------
Compile the code using ANT(http://ant.apache.org/). The build.xml and the build.properties are provided part of the project.
For installing and other ANT related stuff please refer http://ant.apache.org/manual/install.html
***Note:***The compiled distribution binaries will be found inside `build/dist` folder.
**Running**
~~~
remote [OPTIONS]
~~~
**See options**:
***REQUIRED***
~~~
-h - Supply the hostnames to SSH Eg: `wwww.hostname.com[,www.anotherhostname.com,...]`
-c - The command to be executed `^` to escape space in command.
~~~
***OPTIONAL***: It will be prompted if not supplied
~~~
-u - The username to SSH
-p - The password for currently login
~~~
**Example**
The following will fire `ls-ltr` on `wwww.hostname.com[,www.anotherhostname.com,...]`
***WINDOWS***
~~~
remote -h wwww.hostname.com -c "ls -ltr"
~~~
***UNIX/LINUX***
~~~
./remote.sh -h wwww.hostname.com -c "ls^-ltr"
~~~
Note: The space in commandline is not not working as expected on Mac so we are using ^ to escape space.