Friday, February 29, 2008

How to run Unix commands in windows ?

There are multiple ways to use and to run Unix commands in Windows.

And why would you like to do that ..because you are Unix-lover, you are used to flexibility, convenience of unix commands e.g. grep, awk, etc.etc., because you like to be cool to use Unix commands on Windows, and list goes on. But on another hand, most owners will be ok to use native Windows utilities and may occasionally use GnuWin32/unixutils to fill in the gaps.

There are solutions - - apart from using virtualization (VMWare, Microsoft Virtual PC, XEN etc) with virtual host ( like unix/linux OS etc) installed on top of windows.

Cygwin - an emulator running on top of windows
Cygwin is a Linux-like environment for Windows. It consists of two parts:
  • A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.

  • A collection of tools which provide Linux look and feel.

  • GNUwin32 - a sourceforge project
  • Ports of tools with a GNU or similar open source license, to MS-Windows (Microsoft Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista / 2008).

  • Windows versions of many Linux command-line utilities are available. They can be installed individually

  • UnixUtils - another sourceforge project
  • ports unix utilities as native way that the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer.

  • unxutils is a much lighter weight solution to Cygwin

  • UWIN package - an AT&T research project under open source Common Public License 1.0 at AT&T AST/UWIN open source downloads.Allows UNIX applications to be built and run on Windows XP/2000/NT/ME/98/95 with few, if any, changes necessary.
  • Most of the UNIX API is implemented by the POSIX.DLL dynamically loaded (shared) library. Programs linked with POSIX.DLL run under the WIN32 subsystem instead of the POSIX subsystem, so programs can freely intermix UNIX and WIN32 library calls.

  • Libraries that emulate a UNIX environment by implementing the UNIX Application Programming Interface (API)

  • Include files and development tools such as cc, yacc, lex, and make.

  • ksh(1) (the Korn Shell) and over 250 utilities such as ls, sed, cp, stty, etc.

  • Windows Services for UNIX - "free download" Windows Services for UNIX version provides a full range of cross-platform services for integrating Windows into existing UNIX-based environments.
  • These are quite powerful but yet kind of unknown utilities for windows-unit Interoperability.
  • Monday, February 25, 2008

    Love,Romance, Freedom...random quotes

    "I promise you'll be happy,
    And even if you're not,
    There's more to life than that --
    Don't ask me what."

    Bobby Knight
    "Most people have the will to win, few have the will to prepare to win."

    George Bernard Shaw
    “A life spent making mistakes is not only more honorable, but more useful than a life spent doing nothing.”

    Albert Einstein
    “In the middle of every difficulty lies opportunity.”

    Robert Frost
    "The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office."

    Oscar Wilde:
    "To love oneself is the beginning of a lifelong romance."

    Mahatma Gandhi:
    "Freedom is not worth having if it does not include the freedom to make mistakes."

    ...and to err is a human :)

    Sunday, February 24, 2008

    phoenix2Life first blog

    This is my first blog to phoenix2Life.blogspot.com. Before I dwell into the fascinating vast and unlimited boundaries of technology , science , investment and life, I would like to share my interest my passion about the mythological bird Phoenix. The bird which re-creates itself from Ashes and lives in love of fire. So are we - the mother planet Earth's - human race. We keep reinventing ourselves and our lives through peace and conflict using technology and science, investment to our society and life on the planet earth. This similarity between the Phoenix and humans leads to my deep attraction to the bird.

    I like to try to bring my encounters and influences of technology, science, investment and life from day to day life here. I will love to hear your share of these major pillars of the human society.