LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-08-2014, 03:36 AM   #1
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Rep: Reputation: Disabled
Question 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
 
Old 08-08-2014, 03:39 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

there are many ways. For example
Code:
pgrep chkfsys
Read its man page for details.

Evo2.
 
Old 08-08-2014, 03:41 AM   #3
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks for your reply,

pgrep is not found in my shell.

regards,
gaensan
 
Old 08-08-2014, 03:45 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you can install it, or just us ps. eg
Code:
ps aux |grep chkfsys
Evo2.
 
Old 08-08-2014, 06:16 AM   #5
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-08-2014, 06:44 AM   #6
brebs
Member
 
Registered: May 2013
Posts: 89

Rep: Reputation: Disabled
/usr/bin/pgrep is in the procps-ng package.
 
Old 08-08-2014, 07:21 AM   #7
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks for reply evo2 and brebs,

i got output.

this is working for me.

ps -a |grep chkfsys

thanks.

regards,
ganesan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to check PID from file and check whether process is running or not rajkiran183 Linux - Newbie 5 10-19-2012 11:28 AM
Check if process is running, if not, execute another script Erco21 Linux - Newbie 5 07-12-2011 09:12 AM
Check is process is running? Zeno McDohl Programming 2 08-13-2007 07:48 PM
Scripts to check if a process is running kt8993 Programming 3 07-09-2005 05:32 PM
[script] check for a running process mikshaw Linux - Software 2 01-13-2004 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration