Nov-25-2017, 07:35 PM
hello.
I'm looking for a way to run commands and execute programs on both windows and Linux system to make my servers more accessible than running multiple SSH clients.
I am using 3 scripts. The first is the server code which sends and receives commands.
the server receives a command in the form of "ID task command"
multiple clients will connect to the server and await a command to be sent to them.
Finally the controller sends the commands with the I'D of the system needing to be controled.
The part I need gel with is getting the output (or lack of) to the server without crashing or timing out.
I understand I need to use sub process but I'm only sending strings to the client's and they are system specific commands with an arbertery number of args.
example I could send "1 command ls -lh" to a Linux client.
this breakes down to client 1 run command "ls -lh" which should return its output.
however some commands won't return an output like running an eve on windows.
is there a stable method to complete multi platform commands?
I'm looking for a way to run commands and execute programs on both windows and Linux system to make my servers more accessible than running multiple SSH clients.
I am using 3 scripts. The first is the server code which sends and receives commands.
the server receives a command in the form of "ID task command"
multiple clients will connect to the server and await a command to be sent to them.
Finally the controller sends the commands with the I'D of the system needing to be controled.
The part I need gel with is getting the output (or lack of) to the server without crashing or timing out.
I understand I need to use sub process but I'm only sending strings to the client's and they are system specific commands with an arbertery number of args.
example I could send "1 command ls -lh" to a Linux client.
this breakes down to client 1 run command "ls -lh" which should return its output.
however some commands won't return an output like running an eve on windows.
is there a stable method to complete multi platform commands?