How to convert unix shell script to DOS batch file
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 9 of 9

Thread: How to convert unix shell script to DOS batch file

Hybrid View

  1. #1
    Join Date
    Feb 2001
    Location
    Atlanta, USA
    Posts
    131

    How to convert unix shell script to DOS batch file

    Hi Gurus

    I'm running some unix shell scripts from cron-job in the unix server for automatic checking, alerting and paging purpose. Those unix scripts are working fine.

    I want to run the same kind of script in our Windows NT database server.

    My question is:
    How to convert Unix script to DOS BAT file.

    Can someone assist me in this regard.

    Thanks and regards
    Anandharaj
    Anandharaj
    a_anandharaj@yahoo.com

  2. #2
    Join Date
    May 2002
    Posts
    2,645
    1) Open UNIX script in a text editor and save as a Windows-readable text file as necessary.
    2) Open the bat file and edit UNIX commands, paths, whatever to make them DOS-like. Change commands as necessary. Change paths as necessary.

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    3,997

    Re: How to convert unix shell script to DOS batch file

    Originally posted by anandharaj
    Hi Gurus

    I'm running some unix shell scripts from cron-job in the unix server for automatic checking, alerting and paging purpose. Those unix scripts are working fine.

    I want to run the same kind of script in our Windows NT database server.

    My question is:
    How to convert Unix script to DOS BAT file.

    Can someone assist me in this regard.

    Thanks and regards
    Anandharaj
    Take a look at WinBatch. It is a very powerful tool for writing scripts in Windows. Its not free, but it will let you do a lot.

  4. #4
    Join Date
    Feb 2001
    Location
    Atlanta, USA
    Posts
    131
    Hi stecal

    Thanks for your inputs.

    Is there any doc/link is available to find/list DOS command equallent to Unix command ?

    Regards
    Anandharaj
    Anandharaj
    a_anandharaj@yahoo.com

  5. #5
    Join Date
    May 2002
    Posts
    2,645
    This is but one of about 400,000 hits on Google. Sorry, didn't have time to list all of them.

  6. #6
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    3,997
    There is software that you can run on Windows that will emulate a Unix shell.

  7. #7
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Originally posted by gandolf989
    There is software that you can run on Windows that will emulate a Unix shell.
    mks toolkit is one
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  8. #8
    Join Date
    Feb 2003
    Location
    Leeds, UK
    Posts
    367
    I've used Cygwin. It's free and it works well

  9. #9
    Join Date
    Jan 2002
    Location
    Netherlands
    Posts
    1,587
    Cygwin is also my favorite.
    Tarry Singh
    I'm a JOLE(JavaOracleLinuxEnthusiast)
    TarryBlogging
    --- Everything was meant to be---

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width