- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I keep a file busy
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
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
тАО06-14-2009 11:09 PM
тАО06-14-2009 11:09 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 12:08 AM
тАО06-15-2009 12:08 AM
Re: How can I keep a file busy
you can try with editing it - with vi for example.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 12:13 AM
тАО06-15-2009 12:13 AM
Re: How can I keep a file busy
if you open a file in vi then you can't unmount that file system fuser will show devise is busy,
but
>>cannot rm with an error "text file busy"
This will not be possible because if a file is open in one session you can delete this file from other session.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 12:19 AM
тАО06-15-2009 12:19 AM
Solution# cat exe1.c ;; program which just waits for input.
#include
int main(argc,argv)
int argc;
char **argv;
{
getchar();
exit(0);
/* NOTREACHED */
return 0;
}
# cc exe1.c -o exe1 ;;compile
# ./exe1& ;; run in background
[1] + Stopped (SIGTTIN) ./exe1&
# rm exe1 ;;now try to remove the file.
rm: exe1 not removed. Text file busy
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 01:28 AM
тАО06-15-2009 01:28 AM
Re: How can I keep a file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 01:34 AM
тАО06-15-2009 01:34 AM
Re: How can I keep a file busy
I think it is only in question for executables, not possible to reproduce for plain text ? Am I right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 02:45 AM
тАО06-15-2009 02:45 AM
Re: How can I keep a file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 03:00 AM
тАО06-15-2009 03:00 AM
Re: How can I keep a file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 04:35 AM
тАО06-15-2009 04:35 AM
Re: How can I keep a file busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 04:39 AM
тАО06-15-2009 04:39 AM
Re: How can I keep a file busy
it will not avoid rm to work on the file.