Sponsored Content
Full Discussion: Unable to grep the process
Top Forums Shell Programming and Scripting Unable to grep the process Post 302987141 by mohtashims on Tuesday 6th of December 2016 05:18:18 AM
Old 12-06-2016
Tools

Quote:
Originally Posted by RudiC
How do you expect grep to find it, then? Please show the output of /bin/ps -ef for ALL the relevant processes.
Here is the Output

Code:
     UID   PID  PPID   C    STIME TTY         TIME CMD
  netcfg  5865  4775   0   Nov 20 ?           0:36 /lib/inet/netcfgd
    root  4775  4775   0   Nov 20 ?           0:00 zsched
  daemon  5887  4775   0   Nov 20 ?           0:17 /lib/crypto/kcfd
    root  5997  4775   0   Nov 20 ?           1:17 /lib/inet/in.mpathd
    user2  7364  5339   0 04:01:03 ?           0:00 ksh -x pls_med_02001.sh
    root 12094 11832   0 10:49:27 pts/5       0:00 sudo -u user2 -i -H
    user2 13301 13290   0   Nov 28 pts/10      0:00 zsh
    root 11047  4775   0   Nov 20 ?          66:02 ./Agent.bin -a
    root 12877 12720   0   Nov 28 pts/9       0:00 sudo -u user2 -s -H
    root 12239 12094   0 10:49:30 pts/6       0:00 sudo -u user2 -i -H
    user2 16470 29038   0 04:04:28 ?           0:00 sleep 60
user1 26410 26381   0 12:04:26 pts/17      0:00 bash
    user2 15504 15503   0 04:03:44 pts/16      0:00 sleep 888
user1 26381 26380   0 12:04:24 pts/17      0:00 -ksh
user1 28576 28575   0 12:05:37 pts/8       0:00 -ksh
u1064978 12720 12433   0   Nov 28 pts/9       0:00 bash
    root 15626 15477   0 12:11:39 pts/16      0:00 sudo -u user2 -s -H
    user2 15730 15627   0 12:11:41 pts/16      0:00 bash
    user2 16716 16712   0 04:04:40 ?           0:00 tee -a sendemail.603486944.154.log
    root 10476 10328   0 12:21:43 pts/11      0:00 sudo -u user2 -s -H
    root  2512  2511   0 00:33:22 ?           0:01 cdcwatch 2511 -F -M
    user2 12241 12239   0 10:49:30 pts/6       0:00 -ksh
    user2 25389 25384   0 03:40:07 ?           0:00 ksh -x eload.sh 431 LOAD REAL 58731
    root 10328 26410   0 12:21:39 pts/17      0:00 sudo -u user2 -s -H
   rgopi  9324  4775   0        - ?           0:00 <defunct>
    root 13289 12877   0   Nov 28 pts/10      0:00 sudo -u user2 -s -H
    root 15477   781   0 12:11:36 pts/8       0:00 sudo -u user2 -s -H
    user2 16256 28862   0 04:04:23 ?           0:00 sleep 60
    user2 15503 15730   0 04:03:44 pts/16      0:00 bash
    user2 12309 12241   0 10:49:30 pts/6       0:00 zsh
    user2 15949 12309   0 10:50:45 pts/6       0:00 cat
user1   781 28576   0 12:06:36 pts/8       0:00 bash

You have new mail in /var/mail/user1

The one in BOLD is my process which i m not able to grep (find).
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to kill sleeping process

Hi, I'm trying to delete a sleeping process (parent ID is not 1) with "kill -9" command by the owner of the process (infodba) but it doesn't get killed. Is there any way of killing this process without killing the parent process or rebooting? (I'm using HP Unix B.11.11) $ ps -eflx | grep... (0 Replies)
Discussion started by: stevefox
0 Replies

2. Shell Programming and Scripting

unable to grep the following pattern

I have the following line in file1 elif ; then now if i try to grep this using following command grep -e "elif ; then" file1 it is showing nothing... how to grep such patterns (2 Replies)
Discussion started by: suri
2 Replies

3. HP-UX

Unable to kill a process

problem. (2 Replies)
Discussion started by: pvamsikr
2 Replies

4. BSD

Unable to process from lines (envelopes)

Hi, Some of the users on my freebsd server are getting the "unable to process from lines" error when accessing their mailbox. I've checked their mailbox and found that there was a blank line at the top of the mailbox. Everytime i remove it, it appears again sometime later. I've tried... (1 Reply)
Discussion started by: sc_king
1 Replies

5. 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

6. Shell Programming and Scripting

Unable to Kill the process

Hi Guys, I am unable to kill the process . and same process is running so many times. If i am trying to kill once again it restarting/kicked off again. and now i am unable to login . i am getting error message like "error -cannot fork too many process " i know when we ll get this message... (8 Replies)
Discussion started by: kartheek
8 Replies

7. UNIX for Dummies Questions & Answers

cron job is unable to process

Hi All, I have got a shell script that excutes some job and mails me the output as an attachment. While running the script manually, its perfect. when i am scheduling the job through crontab, i am getting the mail. but the attachment but this is a blank file. after the scheduler run, i can... (2 Replies)
Discussion started by: gotam
2 Replies

8. UNIX for Dummies Questions & Answers

Unable to grep

I have a file with 2 lines of code Rome is in Romeo Romeo is in Rome How do I grep, so that only last line would be the outcome. sample output Romeo is in Rome I have tried with all possible greps but its resulting in both the lines in output. Please help. (6 Replies)
Discussion started by: gotamp
6 Replies

9. Shell Programming and Scripting

Unable to do grep in a script

Hi, I am trying to grep a filename from a script after taking the file name and other variables as keyboard input .When I run the grep command with the same filename on the prompt, it runs fine, but it is either not giving me the correct output or not running at all from the script using the... (13 Replies)
Discussion started by: dsid
13 Replies

10. Shell Programming and Scripting

Unable to grep using wildcard in a file.

I wish to check if my file has a line that does not start with '#' and has 1. Listen and 2. 443 echo "Listen 443" > test.out grep 'Listen *443' test.out | grep -v '#' Listen 443 The above worked fine but when the entry changes to the below the grep fails... (2 Replies)
Discussion started by: mohtashims
2 Replies
bup-margin(1)						      General Commands Manual						     bup-margin(1)

NAME
bup-margin - figure out your deduplication safety margin SYNOPSIS
bup margin [options...] DESCRIPTION
bup margin iterates through all objects in your bup repository, calculating the largest number of prefix bits shared between any two entries. This number, n, identifies the longest subset of SHA-1 you could use and still encounter a collision between your object ids. For example, one system that was tested had a collection of 11 million objects (70 GB), and bup margin returned 45. That means a 46-bit hash would be sufficient to avoid all collisions among that set of objects; each object in that repository could be uniquely identified by its first 46 bits. The number of bits needed seems to increase by about 1 or 2 for every doubling of the number of objects. Since SHA-1 hashes have 160 bits, that leaves 115 bits of margin. Of course, because SHA-1 hashes are essentially random, it's theoretically possible to use many more bits with far fewer objects. If you're paranoid about the possibility of SHA-1 collisions, you can monitor your repository by running bup margin occasionally to see if you're getting dangerously close to 160 bits. OPTIONS
--predict Guess the offset into each index file where a particular object will appear, and report the maximum deviation of the correct answer from the guess. This is potentially useful for tuning an interpolation search algorithm. --ignore-midx don't use .midx files, use only .idx files. This is only really useful when used with --predict. EXAMPLE
$ bup margin Reading indexes: 100.00% (1612581/1612581), done. 40 40 matching prefix bits 1.94 bits per doubling 120 bits (61.86 doublings) remaining 4.19338e+18 times larger is possible Everyone on earth could have 625878182 data sets like yours, all in one repository, and we would expect 1 object collision. $ bup margin --predict PackIdxList: using 1 index. Reading indexes: 100.00% (1612581/1612581), done. 915 of 1612581 (0.057%) SEE ALSO
bup-midx(1), bup-save(1) BUP
Part of the bup(1) suite. AUTHORS
Avery Pennarun <apenwarr@gmail.com>. Bup unknown- bup-margin(1)
All times are GMT -4. The time now is 02:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy