Code Monkey home page Code Monkey logo

hancock's Introduction

hancock

Manage multiple remote servers and execute commands remotely

❤️ A project by txthinking.com

Install via nami

nami install hancock

Usage

Note:

    When adding an instance, the user must be allowed to execute sudo without a password!!!
    nami and joker are automatically installed when you run command for the first time on instance.

Add instance

    $ hancock add --name mylinux --server 1.2.3.4:22 --user root --password mypassword
    $ hancock add --name mylinux --server 1.2.3.4:22 --user root --key ./path/to/mykey.pem
    $ hancock add -n mylinux -s 1.2.3.4:22 -u root -p mypassword
    $ hancock add -n mylinux -s 1.2.3.4:22 -u root -k ./path/to/mykey.pem

List instances

    $ hancock list

Remove instance

    $ hancock mylinux remove


Run nami on an instance

    $ hancock mylinux nami install brook
    $ hancock mylinux nami list

Run joker on an instance

    $ hancock mylinux joker brook server --listen :9999 --password hello
    $ hancock mylinux joker last
    $ hancock mylinux joker list
    $ hancock mylinux joker stop 1234
    $ hancock mylinux joker log 1234

Run command and wait output on an instance

    $ hancock mylinux echo hello
    $ hancock mylinux sleep 3 '&&' echo hello

Start command and do not wait output on an instance

    $ hancock mylinux start echo hello
    $ hancock mylinux start sleep 3 '&&' echo hello

Upload your own command

    $ hancock mylinux upload ./path/to/command

License

Licensed under The GPLv3 License

hancock's People

Contributors

txthinking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

romnial darcyg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.