Running korn scripts (.ksh)  scripts in windows

Posted on 2006-06-01
Last Modified: 2013-12-26

I would like to run korn shell scripts on Windows, as I do not have unix or linix installed on my pc.
Theses scripts are very long, and I prefer to run them as they as (without having to modify them).

what is the best way to do this in windows?
I already have cygwin installed in windows, but will it be able to run the scripts? if i need to modify anything in the scripts will it be very simple modifications?

Question by:gghaleb
    LVL 51

    Accepted Solution

    quick&dirty: cygwin
    it will run most scripts
    It will have a lot of problems if your scripts rely on tty, stty, special terminals, and some pipe constructs.

    Author Comment

    ok, pipe constructs might be a problem.
    where can I get a list of all the problematic pipe constructs?
    LVL 51

    Expert Comment

    never have seen one
    If I need to run sophisticated scripts, I use a reliable OS ;-)
    LVL 19

    Assisted Solution

    > where can I get a list of all the problematic pipe constructs?

    Just search all your scripts for the pipe '|" symbol. Other problems could be forking operations, output redirection (looks like > &1) etc. Until you run your scripts, you can't really estimate the compatability with cygwin.
    LVL 48

    Expert Comment

    Best thing to do is try it and see.

    If you get any errors, post them here and we'll try to work through them with you.
    LVL 3

    Expert Comment

    Hi gghaleb,

    As some suggested above and as you comment, you can use cygwin or if you want, you can download VmWare and install Linux as a virtual machine. =0)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now