-   Linux - General (
-   -   Do you know the command?? (

ashok.g 02-26-2010 04:18 AM

Do you know the command??
Hi folks,
Is there a unique command ( common to all Linux Distros, Solaris, Windows ) to know whether a service is installed and running on my system or not??
Frankly speaking this was the question asked by my lead.
Can anyone help me out??

TheIndependentAquarius 02-26-2010 04:29 AM

See if this helps you someway :

As far as Linux Distros and Solaris are concerned, Solaris is Unix based so there may be lots of commands in common, but I'll be surprised if some Linux command runs on windows without any intermediate translater software !

ashok.g 02-26-2010 04:57 AM

Hi anishakaul,
Thanks for your reply.
I don't want something like to run my linux/solaris commands on windows.
I just need a unified command over all Operating Systems to know my service status.
Ofcourse I too was dazzled by that question :confused: :banghead: !!

repo 02-26-2010 05:04 AM

take a look at


jlinkels 02-26-2010 05:05 AM

There is not. In unixes it is 'ps' usally followed by some options and a grep to filter the desired result.

In Windows XP and up it is 'tasklist'. Before XP t was another 2 character command which I don't remember and can't find so quickly.

You have to live with 2 different commands, or create you own program or script.


ashok.g 02-26-2010 05:20 AM

Thanks repo for your answer :) :cool:

All times are GMT -5. The time now is 04:15 PM.