- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- /usr/bin/find: Argument list too long error
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
тАО07-14-2008 06:35 AM
тАО07-14-2008 06:35 AM
find *.trc -mtime +$DAY_AFTER -exec rm {} \;
but when i execute this command, i got ' Argument list too long' error, could someone help me on this?
Thanks for your hlep
Leah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 07:43 AM
тАО07-14-2008 07:43 AM
Re: /usr/bin/find: Argument list too long error
find [insert_path_here] *.trc -mtime +$DAY_AFTER -exec rm {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 07:51 AM
тАО07-14-2008 07:51 AM
Re: /usr/bin/find: Argument list too long error
cd to the $PATH.
I am wondering whether i should change the system parameter or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 08:51 AM
тАО07-14-2008 08:51 AM
Re: /usr/bin/find: Argument list too long error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 09:09 AM
тАО07-14-2008 09:09 AM
Re: /usr/bin/find: Argument list too long error
thanks
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 09:33 AM
тАО07-14-2008 09:33 AM
Re: /usr/bin/find: Argument list too long error
find . -name '*.trc' -mtime +$DAY_AFTER -exec rm {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 09:40 AM
тАО07-14-2008 09:40 AM
Re: /usr/bin/find: Argument list too long error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 09:40 AM
тАО07-14-2008 09:40 AM
Re: /usr/bin/find: Argument list too long error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2018 04:31 AM
тАО06-08-2018 04:31 AM
Re: /usr/bin/find: Argument list too long error
Bom dia,
Utilizei a sintax sugerida, por├йm continua retornando o erro:
find ./clilog.txt -type f -mtime +0 -maxdepth 1 -exec rm -rf '{}' ';'
/u/CA/WorkloadAutomation_R12/bin/cleanup_cli.sh: line 15: /usr/bin/find: Argument list too long
Alguma ideia de como resolver isto?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2018 05:17 AM
тАО06-08-2018 05:17 AM
Re: /usr/bin/find: Argument list too long error
Executei a linha abaixo e solucionou o problema:
find ./ -mindepth 1 -maxdepth 1 -name 'clilog.*' -type f -mtime +$1 -delete
Espero ter ajudado outros usu├бrios!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2018 08:15 PM
тАО06-10-2018 08:15 PM
Re: /usr/bin/find: Argument list too long error
> I used the suggested syntax, but it still returns the error:
Not sure how you could get that error since you don't have any "*".
> find ./ -mindepth 1 -maxdepth 1 -name 'clilog.*' -type f -mtime +$1 -delete
-delete doesn't exist on HP-UX find(1). You have to use: ... -exec rm -rf {} +