- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error on script to copy files
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
05-16-2013 12:19 AM
05-16-2013 12:19 AM
Re: error on script to copy files
>you mean changing the #!/bin/sh by #!/bin/ksh?
Yes, that will do it.
(Of course there may be issues similar to HP-UX where shell scripts may have to use /sbin/sh so they work if /usr isn't mounted.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013 12:20 AM
05-16-2013 12:20 AM
Re: error on script to copy files
./transf[7]: /usr/bin/cp: arg list too long
But I believe if the shorten the markers :
touch -mt 201304240000 /var/tmp/ref1
touch -mt 201305152359 /var/tmp/ref2
I can solve this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013 12:28 AM
05-16-2013 12:28 AM
Solution>./transf[7]: /usr/bin/cp: arg list too long
>But I believe if the shorten the markers :
But why would you want to settle? :-)
The correct solution on HP-UX and Linux would be to use: find ... -exec special-cp-script {} +
But assuming your files are large and it isn't worth trying to use xargs or write that above script, can use:
for file in $(< file_lst); do
cp -pr $file /moneta_collected02/in_psl1/
done
- Tags:
- Arg list too long
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013 12:33 AM
05-16-2013 12:33 AM
Re: error on script to copy files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2013 01:08 AM
05-16-2013 01:08 AM
Re: error on script to copy files
>I have tried that but I am certain is going to work, thanks again for your help
Sure.
If you have performance issues, we can use the find/xargs solutions to invoke cp with multiple files.
- « Previous
-
- 1
- 2
- Next »