A
A
Alexander2014-07-01 17:02:55
PHP
Alexander, 2014-07-01 17:02:55

How to implement command execution on servers?

PC - Win7
Servers - CentOS It is
necessary that the command typed on the PC is sent to certain servers.
Can you tell me the easiest way to implement this? (cron don't offer)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vlad Zhivotnev, 2014-07-01
@roro_4x

DSH to help you (from one of the servers).
https://debian.pro/373
There are hardly any such utilities under Windows. Well, you need to understand that commands like cd do not make sense - they only execute the command, and do not launch the shell (that is, for each command - a new connection).
However, no one forbids scribbling something like "cd /dir; touch file; cd /another/dir; touch file2" and send it with one command.

A
Alexander, 2014-07-01
@SashaSkot

ssh - putty. Please describe the question in more detail.

A
Alexander, 2014-07-01
@roro_4x

Let's say I need to execute the command "cd /home/1/" or "mkdir /home/1/2/" on all servers at once, so as not to go to each server separately.

I
Ivan, 2014-07-01
@0neS

www.linux.org.ru/forum/admin/10330898

T
throughtheether, 2014-07-01
@throughtheether

expect , there is a python version of pexpect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question