- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rm files from directory
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
Forums
Discussions
Discussions
Discussions
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
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
12-14-2001 09:03 AM
12-14-2001 09:03 AM
I am try to remove files from the directory, so I am run following command,
find /var/spoo/uucp/spec01ea -mtime +10 -exec rm {} \;
I am getting the following error
find: cannot stat /var/spool/spec01ea
There are more then 4000 files, and the system generate 2 files every 5 minutes.
Any suggestion how can i do this.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 09:14 AM
12-14-2001 09:14 AM
Re: rm files from directory
This problem occurs when access rights to a directory
have been denied.
R u running as a root? Also check the path for mistakes !
Go to that directory and see whether you can delete those files. or try this:
# cd dir_path
# find . -mtime +10 -exec rm {} \;
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 09:15 AM
12-14-2001 09:15 AM
Re: rm files from directory
Try
#cd
#find . -mtime +10 .....
as root
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 10:00 AM
12-14-2001 10:00 AM
Re: rm files from directory
Cannot stat error is related to a broken/corrupted directory/file structure.
Just do
# find
This will confirm what files are actually accessible in the directory.
Regarding removing the files:
you can do it faster by using xargs instead of exec:
find
Another thing, if your idea is to clear space in /var/spool immediately, what you can do is
#mv
This will free up space in /var/spool and then you can
run the remove command on the other filesystem.
HTH
raj