What is the best solution to remotely start and stop the apache service (running as a windows service) from an
ANT script. I looked into the exec tag to run it by executing cmd.exe.
We had apache running on Windows 2000 server where we called the sc.exe directly from the ant script to stop and start the apache service. However, we recently migrated to Windows 2003 which has more security at teh OS level so a non administrator user cannot start the sc.exe remotely. What are the other options that can be used to start and stop the apache server from the build script.
Can someone please provide sample ant code to do this ASAP?
Please note that apache is running on a remote server.
Many thanks in advance!