Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-08-2014, 03:36 AM
|
#1
|
Member
Registered: Jun 2014
Posts: 37
Rep: 
|
how to check if the process running or not?
hi,
hi i am running chkfsys utility for checking filesystem in background using shell script.
i have to check still this process running or not . how to check this chkfsys utility live or not ?
thanks and regards,
ganesan
|
|
|
08-08-2014, 03:39 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
there are many ways. For example
Read its man page for details.
Evo2.
|
|
|
08-08-2014, 03:41 AM
|
#3
|
Member
Registered: Jun 2014
Posts: 37
Original Poster
Rep: 
|
thanks for your reply,
pgrep is not found in my shell.
regards,
gaensan
|
|
|
08-08-2014, 03:45 AM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
you can install it, or just us ps. eg
Code:
ps aux |grep chkfsys
Evo2.
|
|
|
08-08-2014, 06:16 AM
|
#5
|
Member
Registered: Jun 2014
Posts: 37
Original Poster
Rep: 
|
thanks for your reply,
i don't know how to run check chkfsys utility in particular time .after i have to stop the chkfsys utility.
regards,
ganesan
|
|
|
08-08-2014, 06:44 AM
|
#6
|
Member
Registered: May 2013
Posts: 89
Rep: 
|
/usr/bin/pgrep is in the procps-ng package.
|
|
|
08-08-2014, 07:21 AM
|
#7
|
Member
Registered: Jun 2014
Posts: 37
Original Poster
Rep: 
|
thanks for reply evo2 and brebs,
i got output.
this is working for me.
ps -a |grep chkfsys
thanks.
regards,
ganesan
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
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
|
|