Inactive

Project Summary

  Analyzed 7 days ago based on code collected 7 days ago.

remote-cmdThis application will take a single command ''equivalent of ssh {host} {command}'' or it will take a file containing a list of commands to run on the remote host.

Supported authenticationRSA,DSA or RSA1(identity) key password this should replace the need for rexec. by using libssh2 only one connection is made to the host and multiple commands are sent in serial. by default the command suppresses stdout, this keeps the bandwidth requirements low, and should run nicely on slow connections.

Valid Arguments -d turns on DEBUG and displays the commands sent to the client to STDOUT
-h displays the Usage Statement and exits RC 255
-p Causes the application to pause and prompt user to hit Enter When errors are encountered in the commands run on the client
-v turns on Verbose mode, will display STDOUT and STDERR for each command run on the destination client.
-s specifies skip errors that meet regexp(s) in {errfile}
-e specifies file of environment variables to set on remote side
-t specifies connection timeout in seconds DEFAULTS to 5 seconds
-T {n} this will enable tracing at level 'n'
-P This will allocate a controlling PTY on the session
-c {command} specifies a single command to run on the destination client
-f {filename} specifies a file containing commands to run on the destination client
{HOSTNAME} this is the destination client hostname or IP addressReturn Codesexits with RC 255 on a usage error exits with RC -1 on all other errors exits with RC 0 upon successful execution Prerequisitesopenssl http://www.openssl.org/ libssh2 http://www.libssh2.org/ Please Feel free to send me patches or point out bugs fixes. This is my first time running a project any open repository so all comments/questions are welcome.

Share

In a Nutshell, remote-cmd...

Languages

Autoconf
72%
shell script
24%
3 Other
4%
 
 

Lines of Code

 

Activity

30 Day Summary Apr 11 2013 — May 11 2013

12 Month Summary May 11 2012 — May 11 2013

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.