[SunHELP] Script to stop NT service

Sheldon T. Hall shel at cmhcsys.com
Fri Feb 7 23:02:22 CST 2003


"Mariappan M" <manicks64 at hotmail.com> writes ...

> Is it possible to have a unix script to stop a service running on NT?

Well the snappy answer is "just send it the 'ping of death' ... that'll stop
_all_ the services!"  That's not what you want, I'm sure, and it only works
on unpatched NT 4.0, anyway.

More seriously, I suppose you could use `expect` to simulate an interactive
session on the Unix box, having it log in to the telnet server on the NT box
and issue whatever command-line commands it takes to stop a service.  You
can get `expect` and the supporting stuff for it from www.sunfreeware.com.

-Shel


More information about the SunHELP mailing list