- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find error message ???
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
04-10-2003 05:36 AM
04-10-2003 05:36 AM
Usage: find path-list [predicate-list]
command used:
if [ -d /Apps/applmgr/product/*/*/*/log ]; then /usr/bin/find -fsonly vxfs /Apps/applmgr/product/*/*/*/log -type f -mtime +30 -exec rm -f {} \; &
fi
Can you tell me what I'm doing wrong ???
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:40 AM
04-10-2003 05:40 AM
Re: find error message ???
/usr/bin/find /Apps/applmgr/product/*/*/*/log -type f -mtime +30 -fsonly vxfs -exec rm -f {} \;
I am not sure if the /Apps/applmgr/product/*/*/*/log will be a valid path for find. Try testing it first by replacing the 'rm -f' with a 'ls -l' in the -exec part of the command.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:42 AM
04-10-2003 05:42 AM
Re: find error message ???
/usr/bin/find /Apps/applmgr/product/*/*/*/log -fsonly vxfs -type f -mtime +30 -exec rm -f {} \; &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:46 AM
04-10-2003 05:46 AM
Re: find error message ???
find requires the pathname to search down before any other arguments, as per the man page.
If you change your command to:
/usr/bin/find /Apps/applmgr/product/*/*/*/log -fsonly vxfs -type f -mtime +30 -exec rm -f {} \; &
you should have more luck. I'd test it withouth the -exec until you're happy though. You may also need to enclose the pathname in quotes, I've had issues with this before when using find / -name *.dat for example.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:54 AM
04-10-2003 05:54 AM
Re: find error message ???
Thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:56 AM
04-10-2003 05:56 AM
Re: find error message ???
Cheers,
Pete
Pete