- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Argument list too long in find comand with pec...
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
тАО07-07-2009 01:58 AM
тАО07-07-2009 01:58 AM
/sbin/find: arg list too long
the line of script is:
find $TARGETS -print | cpio -ovC 65536 > /dev/nrmt0h
where $TARGETS are Different Folders in the directory
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:05 AM
тАО07-07-2009 02:05 AM
Re: Argument list too long in find comand with pecified targets
find $HOME -maxdepth 2 -name '*jpg' -print0 | xargs -0 xv
--Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:20 AM
тАО07-07-2009 02:20 AM
Re: Argument list too long in find comand with pecified targets
find -maxdepth 5 -name '$TARGETS' -print0 | xargs -0 | cpio -ovC > /dev/nrmt0h
let me know cause our apps are on this drive and backups haven't run for the last two months
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:27 AM
тАО07-07-2009 02:27 AM
Re: Argument list too long in find comand with pecified targets
find $TARGETS -print | xargs | cpio -ovC 65536 > /dev/nrmt0h
This link is very good
http://www.grymoire.com/Unix/Find.html#uh-4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:35 AM
тАО07-07-2009 02:35 AM
Re: Argument list too long in find comand with pecified targets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:43 AM
тАО07-07-2009 02:43 AM
Re: Argument list too long in find comand with pecified targets
"-C 65536"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:45 AM
тАО07-07-2009 02:45 AM
Re: Argument list too long in find comand with pecified targets
You may have a point!
why not remove the blocksize
I use prefer using tar :-)
--Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:47 AM
тАО07-07-2009 02:47 AM
Re: Argument list too long in find comand with pecified targets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 02:54 AM
тАО07-07-2009 02:54 AM
Re: Argument list too long in find comand with pecified targets
http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/
--Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 03:00 AM
тАО07-07-2009 03:00 AM
Re: Argument list too long in find comand with pecified targets
tar -czf /dev/nrmt0h $TARGETS
or
tar - czf /dev/nrmt0h ./directory ./directory2 .....and so on
What u think