-2

I want to execute shell script on remote windows server through java code without any server setup and installations like SSH. My script file is already there on server. I just want to execute it on server cmd from my machine. Any possible solution?

Alper t. Turker
  • 34,230
  • 9
  • 83
  • 115
Deepansha
  • 1
  • 1

1 Answers1

0

According to definition of shell script from wiki:

"A shell script is a computer program designed to be run by the Unix shell"

Taking into consideration that you want to run a shell script on a windows server it will simply not work. I would suggest you to use some kind of environment as it is provided by cygwin or any other alternatives.

You can also check the following question.

Vitiok
  • 84
  • 7
  • what is powershell ? – Scary Wombat Feb 02 '18 at 08:38
  • **powershell** - command-line shell designed especially for system administrators of windows. It is built on top of the .NET Framework common language runtime (CLR) and the .NET Framework. In other words its a special shell on windows. You can read official documentation to find more. [link](https://learn.microsoft.com/en-us/powershell/scripting/getting-started/getting-started-with-windows-powershell?view=powershell-5.1) – Vitiok Feb 02 '18 at 08:49