Skip to contentSkip to conversation

Unix script on Windows box

DISCUSSION Michael French 2 participants 2 messages Mar 10, 2003

lore
Share & tools
lore
#0 lore raw

I have Netbackup server run on Win2K (NOT MY CHOICE!!!!) that I need to run a Unix script on. I have Interix installed on it (think cygwin, except costs money, company paid for....). Any who, I have Solaris script that works great, but I need to translate it to on the winbloze box but I can't seem to find any good souce on what I need to change.
It looks like the paths can be called with "/C//interix/bin/ksh" and so
forth, but I am not sure how to make the script run. Do I need to make it a batch file or just associate the ".sh" file type with the executable C:\Interix\bin\ksh.exe? Most of the functions in the script are basic unix tools like awk (which is installed) and NBU commands. I know that I could probably get this working on my own with a lot of testing and guessing, but I wanted to probe this list for help to speed things up, I'm under a tight deadline to make this work and have not found much luck with googling around. Thanks!

Michael French

PS, I can post the script if people really want to see it :)

#1 lore raw

Can't you just go to the command line and do:

ksh script.sh

Not sure if I'm understanding entirely so if I'm on the wrong path, let me know.

Chris

Quoted 27 lines · --- Michael French

I have Netbackup server run on Win2K (NOT MY CHOICE!!!!) that I need to run
a Unix script on. I have Interix installed on it (think cygwin, except
costs money, company paid for....). Any who, I have Solaris script that
works great, but I need to translate it to on the winbloze box but I can't
seem to find any good souce on what I need to change.
It looks like the paths can be called with "/C//interix/bin/ksh"
and so
forth, but I am not sure how to make the script run. Do I need to make it a
batch file or just associate the ".sh" file type with the executable C:\Interix\bin\ksh.exe? Most of the functions in the script are basic unix
tools like awk (which is installed) and NBU commands. I know that I could
probably get this working on my own with a lot of testing and guessing, but
I wanted to probe this list for help to speed things up, I'm under a tight
deadline to make this work and have not found much luck with googling around. Thanks!

Michael French

Quoted 7 lines

PS, I can post the script if people really want to see it :)

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/