The UNIX and Linux Forums  


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
Determine LOM version? sysera SUN Solaris 2 10-21-2005 09:25 AM
Cmd to determine my OS version? brian.wilson UNIX for Dummies Questions & Answers 2 09-15-2005 10:11 PM
Determine database used? RageMonkey UNIX for Dummies Questions & Answers 2 04-25-2005 06:21 AM
How to determine the interface? kikikaka IP Networking 2 11-04-2004 10:36 PM
How do I determine # of processors ... bbrandeb49 UNIX for Dummies Questions & Answers 2 10-16-2002 02:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-03-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
I expect that you are picking up the PID of the "grep".

To check whether is happening, try this quick test.


Code:
ps -ef | grep "grep"

To eliminate "grep" itself from the equation.


Code:
ps -ef | grep "/var/lib/dpkg/lock" | grep -v "grep" | awk '{print $2}'

  #2 (permalink)  
Old 05-03-2009
harlock59's Avatar
harlock59 harlock59 is offline
Registered User
  
 

Join Date: May 2009
Location: France
Posts: 11
at
Code:
ps -ef | grep "/var/lib/dpkg/lock" | awk '{print $2}'

i got result: 3058, then i killed
Code:
kill 3058

then i got error:

Code:
bash: kill: (3058) - Aucun processus de ce type
(no such process)

???
  #3 (permalink)  
Old 06-07-2009
harlock59's Avatar
harlock59 harlock59 is offline
Registered User
  
 

Join Date: May 2009
Location: France
Posts: 11
Smile

i think nothing...

ps -ef | grep "/var/lib/dpkg/lock" | awk '{print $8}'

gives me...

...grep

-----Post Update-----

Quote:
Originally Posted by methyl View Post
I expect that you are picking up the PID of the "grep".
nope.

i expect to find out which software is monopolizing my lock file...

i guess that it is the automatic updates process from gnome, but i would like to end it and manually install another software from the console using aptitude.
  #4 (permalink)  
Old 05-03-2009
harlock59's Avatar
harlock59 harlock59 is offline
Registered User
  
 

Join Date: May 2009
Location: France
Posts: 11
any clue ?
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 01:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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