1834247 Members
2560 Online
110066 Solutions
New Discussion

Unix to NT commands

 
Dolores Capers
Contributor

Unix to NT commands

Hi Everyone,

Is there a way for a unix system to send commands to a NT system and stop a particular service on the NT system?


Dolores
5 REPLIES 5
Michael Tully
Honored Contributor

Re: Unix to NT commands

Hi,

As long as the 'telnet' daemon is running
on the NT box you can get in and run
'dos like' commands. Usually the 'telnet'
daemon is actually turned off. If you have
software like a 'remote shell' you can also
run remote commands.

Go to www.google.com and in the search field
place 'remote shell NT' and look for the
results.

-Michael
Anyone for a Mutiny ?
A. Clay Stephenson
Acclaimed Contributor

Re: Unix to NT commands

Hi:

One excellent toolkit for this is the MKS Toolkit. http://www.mkssoftware.com/

However, if you want a cheap but powerful method. Set up a perl daemon to listen on a port and do a 'roll your own' rexec. You can download a free version of perl for NT at
http://www.activeperl.com/. Sockets are very easy to do in Perl and even things like spawning detached processes and services on your NT box become quite simple. This is exactly the kind of things that Omniback Pre and Post Exec scripts have to do on NT boxes and I always use perl for that.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: Unix to NT commands

NT 4.0 or Win2000?

live free or die
harry
Live Free or Die
Frank Slootweg
Honored Contributor

Re: Unix to NT commands

NT (and similar) normally do not include a telnet, rlogin, remsh, rcp, etc. *daemon*, so NT can not be a 'slave'/server system for this. (There are *optional* products which do this.)

A workaround can be to let the NT system be a pseudo master. I.e. let the NT schedule a job ("Scheduled Tasks" or AT command) at regular times where that job does a rcp to the HP-UX system to get a .bat file and then executes that .bat file. If there is nothing to do, the .bat file can be a dummy one, i.e. one which does nothing. If wanted, the batch_job/.bat_file can also use rsh to execute commands/scripts on the HP-UX system.
Bernie Vande Griend
Respected Contributor

Re: Unix to NT commands

I like Clay's suggestions. I've used perl myself for things like this. Another alternative is to use SSH. You could run the free OpenSSH on the Unix side and possibly the commercial version of SSH on the NT/2000 side, although there are free NT clients as well. I'm not sure if there is a free server side for SSH on NT/2000.
Ye who thinks he has a lot to say, probably shouldn't.