LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Do you know the command?? (http://www.linuxquestions.org/questions/linux-general-1/do-you-know-the-command-791688/)

ashok.g 02-26-2010 05: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 05:29 AM

See if this helps you someway : http://www.askstudent.com/tips/how-t...ommand-prompt/

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 05: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 06:04 AM

take a look at
Code:

netstat
http://en.wikipedia.org/wiki/Netstat

jlinkels 02-26-2010 06: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.

jlinkels

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

Thanks repo for your answer :) :cool:


All times are GMT -5. The time now is 02:14 AM.