Operating System - HP-UX
1826102 Members
4790 Online
109690 Solutions
New Discussion

converting Unix scripts to Windows.

 
doug mielke
Respected Contributor

converting Unix scripts to Windows.

I'm asking you Unix folks because I'd like my solution to be as Unix like as possible.

I'm tasked with converting about 100 small remote Unix servers to run windows 2003. They are scattered all around the world.
Currently I make use of ftp, rcp, rcmd, and even nfs to perform periodic database additions to all these servers at the same time.
(homegrown database)

I need to push a script containing the updates to these servers, then execute the script from my home location. I've not found anything like a remote command in windows, and I don't want to depend on a scheduler.

Is there something in the dark world of windows that I can do this with?

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: converting Unix scripts to Windows.

http://www.networksimplicity.com

http://www.networksimplicity.com/openssh

Openssh is what really should have been used for Unix anyway.

Haval(too bad) Unix is being replaced with an inferior product.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adam Garsha
Valued Contributor

Re: converting Unix scripts to Windows.

Look into:

A.) ActiveState Perl
B.) WSH (Windows scripting host)

or learn Visual Basic (yuck).

Here are links:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsoriwindowsscripthost.asp

http://www.activestate.com
A. Clay Stephenson
Acclaimed Contributor

Re: converting Unix scripts to Windows.

Well, if you are going over to the dark side of The Force, you might as well use a Microsoft supported product. I would look into Microsoft Services for UNIX (SFU); this will probably result in the fewest changes to your existing code.

http://www.microsoft.com/windowsserversystem/sfu/default.mspx

Plan B. Linux
If it ain't broke, I can fix that.
Scott_20
Occasional Advisor

Re: converting Unix scripts to Windows.

I'd just quit
I'm ok
Simon Hargrave
Honored Contributor

Re: converting Unix scripts to Windows.

Couple of other tools you may like (if you don't quit):

http://www.cygwin.com/

It's basically a DLL that enables GNU utilities to be compiled on Windows. Give you a more familiar environment, including shell, all your favourite tools, GCC, X Windows if you want it, etc etc.


If you don't need the flexibility of Cygwin you can always use UNIX tools. Basically just grep, awk etc compiled for Win32.

http://unxutils.sourceforge.net/


Either one should make your life scripting on a Winblows box a WHOLE load easier!