Sponsored Content
Full Discussion: ps -ef
Top Forums UNIX for Advanced & Expert Users ps -ef Post 302076884 by Kamali on Friday 16th of June 2006 11:14:47 AM
Old 06-16-2006
Thanks Perdarabo ..
Looks like I understand what you are saying ..
So if my script is called runMonitor.sh, then are you saying that if i give
ps -ef | grep -i 'runMonitor.sh' | grep -v grep | wc -l

will invoke 1 fork for each command that has the name 'runMonitor.sh' ?

sorry I posted this query in advanced column , but I am quite comfortable in unix commands but not in the way they are executed..
So please help
 
XZGREP(1)							     XZ Utils								 XZGREP(1)

NAME
xzgrep - search compressed files for a regular expression SYNOPSIS
xzgrep [grep_options] [-e] pattern file... xzegrep ... xzfgrep ... lzgrep ... lzegrep ... lzfgrep ... DESCRIPTION
xzgrep invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), or bzip2(1). All options specified are passed directly to grep(1). If no file is specified, then standard input is decompressed if necessary and fed to grep(1). When reading from standard input, gzip(1) and bzip2(1) compressed files are not supported. If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1). The same applies to names lzgrep, lze- grep, and lzfgrep, which are provided for backward compatibility with LZMA Utils. ENVIRONMENT
GREP If the GREP environment variable is set, xzgrep uses it instead of grep(1), egrep(1), or fgrep(1). SEE ALSO
grep(1), xz(1), gzip(1), bzip2(1), zgrep(1) Tukaani 2010-09-27 XZGREP(1)
All times are GMT -4. The time now is 09:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy