Running a shell script in a windows environment

Asked By 0 points N/A Posted on -
qa-featured

I have a shell script that works well in a windows environment and wanted to be able to use it in Linux, How can I achieve this in a windows environment? I need the script to operate some function in windows. Please help me achieve this, and offer an alternatives on how this can be achieved

SHARE
Answered By 0 points N/A #176413

Running a shell script in a windows environment

qa-featured
Hi Laurie,
 
Scripts with a .sh are Bourne shell scripts. This is not required in Unix-like systems including MacOS.
There  no Bourne-like shell in Windows. Cygwin can be installed, providing a Unix-like environment in Windows but there is no native environment.
Other Unix-like subsystems operable under Windows are MinGW and the services for UNIX package which Microsoft provides.
 
Windows batch files can also be written which have a .bat or .cmd suffix. These are similar to Windows interactive prompt commands and syntax.
 
Regards,
Anyet

Login/Register to Answer

Related Questions