The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep help flood Shell Programming and Scripting 3 06-06-2008 01:14 AM
Grep Aejaz UNIX for Advanced & Expert Users 3 04-30-2008 07:10 AM
grep dineshr85 Shell Programming and Scripting 1 10-10-2007 04:52 AM
how to exclude the GREP command from GREP yamsin789 UNIX for Advanced & Expert Users 2 10-05-2007 02:59 AM
Make grep -c display like grep -n? Jerrad Shell Programming and Scripting 2 08-25-2006 12:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-18-2006
ebethea27703 ebethea27703 is offline
Registered User
  
 

Join Date: May 2006
Posts: 6
grep

Why is it that when I script:
ps -ef |grep os_

It returns

production 18160 1 0 May 11 ? 0:55 ora_dbw0_production
> > >
> > >production 17376 14627 1 12:39:10 ttyp1 0:00 grep ora_
> > >
> > >production 18164 1 0 May 11 ? 2:15 ora_ckpt_production
> > >
> > >production 18166 1 0 May 11 ? 2:00 ora_smon_production
> > >
> > >production 18168 1 0 May 11 ? 0:00 ora_reco_production
> > >
> > >production 18170 1 0 May 11 ? 1:32 ora_cjq0_production
> > >
> > >production 18162 1 0 May 11 ? 3:47 ora_lgwr_production
> > >
> > >production 18158 1 0 May 11 ? 1:19 ora_pmon_production
> > >
> > >production 18172 1 0 May 11 ? 21:26 ora_qmn0_production

What is line 2 and if it's not a db process why did it pull it up?
  #2 (permalink)  
Old 05-18-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
First, I guess you meant ps -ef | grep ora_ , not os_

Anyway, the second line comes up because when you run the ps -ef | grep command, you create a process, so your command simply is picking itself up among the list of processes running.

You grep for a string of text, not a type of process.
  #3 (permalink)  
Old 05-18-2006
ebethea27703 ebethea27703 is offline
Registered User
  
 

Join Date: May 2006
Posts: 6
Reply

Oops, your right. I meant grep ora_.
Thanks for the help. I was on the right track, I just didn't know how to bring it on home.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0