Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-26-2010, 04:18 AM
|
#1
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Rep:
|
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??
|
|
|
|
02-26-2010, 04:29 AM
|
#2
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
|
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 !
Last edited by Anisha Kaul; 02-26-2010 at 04:32 AM.
|
|
|
|
02-26-2010, 04:57 AM
|
#3
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Original Poster
Rep:
|
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  !!
|
|
|
|
02-26-2010, 05:04 AM
|
#4
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
|
|
|
|
02-26-2010, 05:05 AM
|
#5
|
|
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,788
|
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
|
|
|
|
02-26-2010, 05:20 AM
|
#6
|
|
Member
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215
Original Poster
Rep:
|
Thanks repo for your answer 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|