Useful Cygwin commands
Service Management
Using net
Start a service
net start "screen-scraper server"
Stop a service
net stop "screen-scraper server"
Using sc
List all running services
sc query type= service
List all inactive services
sc query type= service state= inactive
List all services
sc query type= service state= all
Start a service
sc start "screen-scraper server"
Stop a service
sc stop "screen-scraper server"
Status of a service
sc query "screen-scraper server"
Run command on a remote machine
sc \\user@remotehost start "name of service"
scraper on 08/26/2010 at 11:50 am
- Printer-friendly version
- Login or register to post comments