- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find command on NFS is returning "creates a cycle"...
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
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
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
03-19-2013 10:51 AM
03-19-2013 10:51 AM
find command on NFS is returning "creates a cycle" for a .file (dot file)
after presetting Myfile and age in my script
find /mydir/mysubdir/ ! -name ".snapshot" -a -name "$Myfile.*.*.*.*.*" -a -mtime +$age -a -exec rm {} \;
Even with the exclusion of the .snapshot file I get this every time:
find: /mydir/mysubdir/.snapshot creates a cycle
I do not want to even look at this file... Can anyone help me clear this up? I use this type of cleanup all the time on local disks and do not get any errors nor need the exculsion check...
TIA -Keith
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013 11:36 AM - edited 03-19-2013 11:36 AM
03-19-2013 11:36 AM - edited 03-19-2013 11:36 AM
Re: find command on NFS is returning "creates a cycle" for a .snapshot
>I do not want to even look at this file
The proper find primary is -prune and if you want performance, you need "+":
find /mydir/mysubdir/ -name .snapshot -prune -o -name "$Myfile.*.*.*.*.*" -mtime +$age -exec rm {} +