S
Spendius
Hi,
I have a small NAS device that I can switch off once I'm logged on
to it: I just have to open the management page using my favorite
browser, type my login/pwd, then click on a 'Shutdown' button and
that's it - no need to get back down to my basement to manually
switch the contraption off.
=> I'd like write a small Java class that will
1 perform the http connection to this device web server,
2 then run/submit the 'shutdown' action to its small web server too...
Is there an easy way to perform these 2 steps (using Struts maybe) ?
I'd really like to be able to type something like:
C:\temp> java -cp %CLASSPATH% SwitchOffMyNAS
in a DOS window and have my external device to shut down...
Feasible ?
Thanks a lot in advance,
Spendius
I have a small NAS device that I can switch off once I'm logged on
to it: I just have to open the management page using my favorite
browser, type my login/pwd, then click on a 'Shutdown' button and
that's it - no need to get back down to my basement to manually
switch the contraption off.
=> I'd like write a small Java class that will
1 perform the http connection to this device web server,
2 then run/submit the 'shutdown' action to its small web server too...
Is there an easy way to perform these 2 steps (using Struts maybe) ?
I'd really like to be able to type something like:
C:\temp> java -cp %CLASSPATH% SwitchOffMyNAS
in a DOS window and have my external device to shut down...
Feasible ?
Thanks a lot in advance,
Spendius