The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Stopping A process gopsman Shell Programming and Scripting 4 12-05-2007 06:37 AM
How do I Process Multiple Files dc1743 UNIX for Dummies Questions & Answers 1 09-13-2007 11:11 AM
Shell - PLSQL multiple process problem. deepsweech Shell Programming and Scripting 1 07-25-2007 02:28 AM
I can't resume a process after stopping it! Nene Shell Programming and Scripting 0 08-09-2006 10:37 AM
How to choose Multiple process or Multiple threads? ashleykumar IP Networking 0 04-10-2006 03:30 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-19-2005
Registered User
 

Join Date: May 2005
Posts: 7
Question Stopping multiple process on AIX

I'm trying to update a shared library (*.so) in our AIX machine. However, when I tried to delete the old *.so file, I get this error -> Cannot open or remove a file containing a running program. Based on the information I gather from the net, shared libraries are not unloaded (the file remains locked) even after the process using it has exited.

Would any of you know how I could stop all the process that is currently using that shared library for me to udpate that file? I'm currently using the kill -9 <PID> command but it seems that there's a great number of process that uses that file. Hope someone could help me.
Reply With Quote
Forum Sponsor
  #2  
Old 05-20-2005
Registered User
 

Join Date: May 2005
Posts: 80
If you use the fuser {filename} command, you will get a list of procs using the file. Based on this you should then be able to free the file.
Reply With Quote
  #3  
Old 05-20-2005
Registered User
 

Join Date: May 2005
Posts: 80
to kill multiple procs, you can issue kill {PID1} {PID2} {PIDn}......
Reply With Quote
  #4  
Old 05-20-2005
Registered User
 

Join Date: Apr 2005
Posts: 8
Not sure if this would help you or not, but take a look at /usr/sbin/slibclean command. I use to have to run this for the Oracle DBA's on a regular basis.

Let me know if this helped you or not.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0