Jump to content
Sign in to follow this  
kris06

How to check for a service in a remote computer

Recommended Posts

kris06

Hi all,

Is it possible to check for a particular service on a remote computer? I need to ensure that a service is up, before i can telnet into a machine.

any help would be greatly appreciated , thanks.

~Kris

Share this post


Link to post
Share on other sites
IvanDream

sry i don't fully understand

wht do u mean?


Share this post


Link to post
Share on other sites
kris06

Use GEOSoft's Services.au3

I figured a quicker way, using windows tasklist utility.

tasklist /s 127.0.0.1 /FI "SERVICES eq autoit3.exe" >file.txt

this would write the output(image name, PID..etc) to file.txt. if the service does not exist, the file would be empty.

then its just a matter of reading the file. filesize>0 and filesize=0 checks to ensure the service is up or not.

Thanks for responses :)!

~Kris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.