>I have to strictly use Linux box to shutdown the windows PC.
You need to be running some type of service on the windows box. It would
also have to be administrator. Complicating this is the ip address, if dhcp
and it changes, your linux system needs to be able to locate the windows
boxes to send a shutdown message.
A cheap way would be a service that periodically looks for a file and resets
the system if the file shows up. You can ftp or drop the file or the
windows service can look in a samba mount point to spot the file. I have
done this with about 20 notebooks, ftp a file and an app on the notebooks
resets them. Not all notebooks seem to shut down cleanly at least on the
win98 ones I had. Some would say "shutting down" and never shut down.
A better solution would be to run a window script on a windows box.
Enumerate the domain and issue a shutdown request to the boxes on the
windows domain. see "Windows 2000 scripting guide" and you can download
free software from microsoft so you dont have to actually buy the book.
This begs the question of how your linux box gets the windows one to run the
script. I have done this in a windows domain, but not from a linux box.
A more expensive way would be to use a naming service on your linux box. A
windows box's service would find the naming service and register with it.
The linux box would then have a list of subscribers that it could send a
message to causing a shutdown. CORBA has tools to do this. Look here for
software
http://deuce.doc.wustl.edu/Download.html and read
news:comp.soft-sys.ace
BTW: I inadvertantly email this to you instead of posting it.
================================================== =====================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================