Giter Site home page Giter Site logo

Comments (2)

freedomkk-qfeng avatar freedomkk-qfeng commented on July 26, 2024
# ./multissh -cmds "cd /home;ls;exit" -hosts "192.168.88.101" -u root -p password                      
2019/07/08 00:21:55 Multissh start
2019/07/08 00:21:56 Multissh finished. Process time 548.964287ms. Number of active ip is 1
host:  192.168.88.101
========= Result =========
Last login: Sun Jul  7 00:44:48 2019 from 172.20.152.65
[root@test ~]# [root@test home]# logs  webapps
[root@test home]# logout

I test thess cmds on centos7 and works ok. Please provide your OS and version.
And on linux, your can use -l for linux mode, then you can combine cmds with &, like this.

# ./multissh -l -cmds "cd /home&&ls&&exit" -hosts "192.168.88.101" -u root -p password    
2019/07/08 00:24:20 Multissh start
2019/07/08 00:24:20 Multissh finished. Process time 214.614387ms. Number of active ip is 1
host:  192.168.88.101
========= Result =========
logs  webapps

from multissh.

halleyshx avatar halleyshx commented on July 26, 2024
# ./multissh -cmds "cd /home;ls;exit" -hosts "192.168.88.101" -u root -p password                      
2019/07/08 00:21:55 Multissh start
2019/07/08 00:21:56 Multissh finished. Process time 548.964287ms. Number of active ip is 1
host:  192.168.88.101
========= Result =========
Last login: Sun Jul  7 00:44:48 2019 from 172.20.152.65
[root@test ~]# [root@test home]# logs  webapps
[root@test home]# logout

I test thess cmds on centos7 and works ok. Please provide your OS and version.
And on linux, your can use -l for linux mode, then you can combine cmds with &, like this.

# ./multissh -l -cmds "cd /home&&ls&&exit" -hosts "192.168.88.101" -u root -p password    
2019/07/08 00:24:20 Multissh start
2019/07/08 00:24:20 Multissh finished. Process time 214.614387ms. Number of active ip is 1
host:  192.168.88.101
========= Result =========
logs  webapps

When I add “-l” for linux mode,It worked! Thanks!

from multissh.

Related Issues (20)

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.