How do you run ShellScript on Windows?

14,592

Solution 1

I suggest you install cygwin at home.

Solution 2

You should look at cygwin, install it on you host with relevant utilites and try it.

Solution 3

Would running a version of Linux from a DVD do the trick for you?

You can download a disk image of Knoppix Linux from their web site http://www.knoppix.net/

and burn it to a DVD. You can then reboot the computer and run Knoppix from the DVD without changing anything on your computer.

Solution 4

I'd hate to pass judgement on a course I'm not taking, but it sounds like you might not get the entire story about shell scripting, based on your description.

As others have suggested, Cygwin is the way to go, it's excellent. Here's a nice how-to for bash. I'd avoid tcsh or any other version of the c shell (there be monsters).

If you end up needing to do something more advanced, bash can be cumbersome. You should consider a general purpose language, such as python, which is also available in cygwin, or as a stand-alone windows installer. For process control, though, bash is king.

Share:
14,592
TomG
Author by

TomG

Updated on November 18, 2022

Comments

  • TomG
    TomG over 1 year

    I'm just a student and I'm learning ShellScript in my college. In college lab, our ma'am just asked to enter an IP address in PUTTY and launch it, open Vi editor and do programming. How do I do it at home? I run XP on my computer.

  • Kristof Mertens
    Kristof Mertens over 15 years
    I missed the earlier post in matter of seconds I suppose :)