A
A
Alexander Krupnov2015-10-09 21:12:37
linux
Alexander Krupnov, 2015-10-09 21:12:37

How to run a program on Windows over the network from the Linux command line?

Hello! There was a need to execute a command in the Windows command line (preferably with administrator rights) over a network with Linux, or rather with php. Moreover, it is necessary that the program return the result of execution (text from the command line) to PHP. You can of course install PHP on Windows, but I really don't like how the web server works on Windows. I looked for a solution on the Internet - I did not find anything I really needed. Of course, you can write a simple client-server application that will do this. But I don't want to reinvent the wheel. Can anyone come across?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Omich, 2015-10-09
@worlddev

Install WinSSHD on Windows and connect to it via SSH. Something like this.

R
Ruslan Fedoseev, 2015-10-09
@martin74ua

telnet-server is
unsafe terribly, but it will do for Windows;)
Well, I don’t like it;)
Only close it with a firewall for everyone, except for the address of your site.

M
Max, 2015-10-09
@MaxDukov

RSH? google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question