Richie Gonyea asked 1 year ago
Title : How to execute a Windows Batch File from Linux Machine and vice versa?

Question :

How to execute a Windows Batch File from Linux Machine and vice versa?

1 Answers
Ruchin SinhaRuchin Sinha Staff answered 1 year ago

Executing Windows Program/Batch Script from Linux Machine
In order to execute any Windows program from Linux machine, you need to install an ssh server (OpenSSH or Cygwin) on the Windows machine. Once an ssh server is configured successfully on Windows machine, below command can be triggered from Linux machine to execute any windows program of batch script

ssh username@<ip_address_of_windows_machine> <complete_path_of_program_to_be_executed>
 
Executing Linux shell scripts from Windows Machine
The easiest way to execute the linux shell script from Windows is through plink.exe using the below command.

plink.exe demouser@<linux_machine_ip_address> -pw <password> -m <complete_path_of_file_containing_commands to be executed>
 
Thanks,
Ruchin

Cubastion is among a very small number of specialized Siebel CRM Oracle Gold Partners in SME.