- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rm busy file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:49 AM
тАО05-14-2002 10:49 AM
I have deleted all but one executable in a software's directory that I wanted to delete.
After this:
chmod 000 abaqus_elmd
I do:
rm -f abaqus_elmd
And get back:
abaqus_elmd: 0 mode ? (y/n) y
rm: abaqus_elmd not removed. Text file busy
I don't know if you are going to mention its use, but I do not have the stat() function or script in any of my bins. The only reason I did a chmod was because I read somewhere that it might help. Also, I have already tried:
rm -Rf directoryname
Thanks,
-Cody
Solved! Go to Solution.
- Tags:
- ETXTBSY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:54 AM
тАО05-14-2002 10:54 AM
Re: rm busy file
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:54 AM
тАО05-14-2002 10:54 AM
Re: rm busy file
The 'text' term is a little misleading here in that it actually refers to executable instructions (code). You need to first kill the process and then you will be able to remove the file.
Do this:
1) ps -ef | grep abaqus_elmd and note the PID of the process.
2) kill PID
if that fails try kill -11 PID; only as a last resort use kill -9
3) rm abaqus_elmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:54 AM
тАО05-14-2002 10:54 AM
Re: rm busy file
Use the fuser command
fuser -ku /path/to/command_name
This will list who was using it & kill the process.
Should be able to remove then.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 10:54 AM
тАО05-14-2002 10:54 AM
Re: rm busy file
If it can't be removed at present, you can rename it and then go back later to do the delete.
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2002 11:16 AM
тАО05-14-2002 11:16 AM
Re: rm busy file
There is a sure shot way to do it
ls -li filename
you will get a inode no for that file
do a clri
do a man clri for this ,
then do a fsck on the filesystem , it will ask to remove the file while cleaing the fielsystem.
Manoj Srivastava