Sponsored Content
Full Discussion: grep for a process
Top Forums UNIX for Dummies Questions & Answers grep for a process Post 42161 by bensky on Thursday 23rd of October 2003 04:00:48 AM
Old 10-23-2003
Thanx for your help, it works!

Ben Sky
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Kill a process from a grep

Soz im a bit newbie... I want to do: ps -A | grep firefox | kill $1 it should kill the pid associated, but it doesnt work. $1 is the pid (if i do a awk {'print $1'} i get it ) , but kill doesnt take it as such... How can i do it? (3 Replies)
Discussion started by: ierpe
3 Replies

2. Shell Programming and Scripting

grep the number of self process

Dear All, I plan to write a script and in the beginning, I will check if there's any existing previous process running, if YEs, then exit directly, if Not, then continue. #!/bin/bash NUM=`ps -ef | grep $0 | grep -v grep | wc -l` ps -ef | grep $0 | grep -v grep echo "NUM ==> $NUM" if... (6 Replies)
Discussion started by: tiger2000
6 Replies

3. Shell Programming and Scripting

grep the process id and kill all the filtered process

Hi I want to write a shell script which can find the process id's of all the process and kill them eg: ps ax | grep rv_ 3015 ? S 0:00 /home/vivek/Desktop/rv_server 3020 ? S 0:00 /home/vivek/Desktop/rv_gps 3022 ? S 0:00 /home/vivek/Desktop/rv_show ... (7 Replies)
Discussion started by: vivek_naragund
7 Replies

4. Shell Programming and Scripting

grep for a certain process

Hey all, I got some help last week and It will temporarily work We have a certain process that runs several processes within it. Here is an example: Date - 0:04 process1-database: db (state) Date - 0:04 process1-database: db (state) Date - 0:04... (8 Replies)
Discussion started by: jeffs42885
8 Replies

5. Shell Programming and Scripting

Grep command to show only process name

Can I modify the grep command to show only a process name? Currently I run ps -efa | grep chk_web to get the following: mousr 3395 1 0 09:36:06 pts/10 0:00 sh /var/opt/scripts/chk_web.sh Can this be changed in any way to get only: /var/opt/scripts/chk_web.sh or chk_web.sh. I... (3 Replies)
Discussion started by: runnerpaul
3 Replies

6. UNIX for Dummies Questions & Answers

Grep the process id

Hi How to grep the process id and take it as a variable.i tried to get the value 9953 to a variable and could not with my little bit of linux exp,can any one help netstat -ptlen | grep 10000 tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 0 ... (3 Replies)
Discussion started by: vikatakavi
3 Replies

7. Shell Programming and Scripting

Grep process with two strings

Hi, I am trying to get the PID of a process that is defunct. I have two quesitons on this. 1) how do I pass in two strings? This is what I am using now: ps -ef |egrep -i "programname|<defunct>" But this returns multiple results with the word defunct in them. 2) How do I make it so that... (1 Reply)
Discussion started by: ChickenPox
1 Replies

8. UNIX for Dummies Questions & Answers

Grep a specific process name

Hello, I want to grep a specific process named "TEST" in AIX but not only is it showing what I want but also listing others that have the similar name. How can I only list "TEST"? I've tried using options grep -w with no change and grep -o isn't supported in my environment. Please advise. ... (6 Replies)
Discussion started by: seekryts15
6 Replies

9. Shell Programming and Scripting

Unable to grep the process

I have user1 run a script called logginexpert.sh while has this line of code sleep 888I then login to another putty session with another user2 and try to grep for the logginexpert.sh process using ps -ef | grep exSunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise But, i dont get any... (20 Replies)
Discussion started by: mohtashims
20 Replies

10. Shell Programming and Scripting

Can't grep name of process

Hi I am trying to grep the name of the user running a specific process on one of my systems.$ ps -efl | grep 'Introscope_WebView.lax' | grep -v grep| awk '{print $3}' $ ps -efl | grep 'Introscope_WebView.lax' 0 S apm 14572 17108 0 80 0 - 28164 pipe_w 10:31 pts/4 00:00:00 grep... (2 Replies)
Discussion started by: simpsa27
2 Replies
PAGERMAP(5)							File Formats Manual						       PAGERMAP(5)

NAME
pagermap - SNPP pager identifier mapping file DESCRIPTION
The file etc/pagermap (by default) is used by the SNPP support in hfaxd(8) to map pager identifiers specified with the PAGE directive to IXO/TAP or SMS service providers and optionally a Pager Identification Number (PIN). (The ability to specify a PIN makes it possible to define aliases for pagers.) Note that etc/pagermap may be called a different name; the filename is specified with the PagerIDMapFile con- figuration parameter read by hfaxd(8). The pagermap file is comprised of one or more lines of the following format: <pattern> <dialstring>[/<pin>] Each line specifies a <pattern> that is matched against a client-specified pager identifier string. A pattern may be a plain string or a POSIX 1003.2 extended regular expression; plain strings must compare exactly while regular expressions are unanchored and any substring match constitutes a ``hit''. Regular expressions are distinguished from plain strings by the presence of one or more of the magic charac- ters ``[]*.^$-+{}()''. The <dialstring> identifies the IXO/TAP or SMS service provider to contact for delivery or, if <dialstring> is the string ``reject'' (case insensitive) then the pager identifier is rejected. If the optional <pin> is specified then it used to deliver the page instead of the client-specified identifier. If the matching expression is a regular expression the optional <pin> may reference the entire string matched by the regular expression with the ``&'' character. Substrings matched with the ``(...)'' constructs may be referenced by using `` '' where n is a single numeric digit between 1 and 9 that refers to the n-th matched substring; c.f. re_format(7), sed(1), etc. hfaxd processes lines in the mapping file sequentially; the first line with a pattern that matches the pager identifier is used to deliver or reject the page. Lines that begin with a ``#'' are treated as comments and discarded. Leading whitespace on a line is also ignored. EXAMPLES
The following defines an alias for ``sam'', submits all destinations with a leading ``Sky'' to a particular IXO/TAP service provider, and otherwise rejects the pager ID. (Note that using alphabetics in dial strings requires a dialstring rules file that understands how to map alphabetics to key codes--or one that passes them through verbatim.) # a simple mapping example sam 5551212/99 Sky(.*) 1800SkyTel/1 .* reject SEE ALSO
hfaxd(8), hylafax-server(5) May 8, 1996 PAGERMAP(5)
All times are GMT -4. The time now is 12:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy