- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copy command
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
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
09-19-2007 01:08 AM
09-19-2007 01:08 AM
A developer created a script that will copy a file (greater than 2 GB) from one location to another. The script is scheduled in CRON. Part of what the script does is that it checks for a certain job to end before it performs the copy. If the job is still running, it will reschedule itself using "at".
The script will run successfully in CRON if the job is completed. The sript will run successfully if we manually start it. It will also run successfully if we manually run the "at" command to schedule it. But if the script runs and it reschedules itself using the "at" command, it will fail with the following message:
"cp: bad copy to /download/ods/prod/item/data/item_MW.txt.tmp: write: File too large. load_item_MW.sh : ...ERRORED with status 1. "
Just to make it clear, we have been able to successfully copy the file manually so I doubt it's a file size issue.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 01:11 AM
09-19-2007 01:11 AM
Re: copy command
servera:root /root/ # fsadm -F vxfs /filesystem
largefiles
Should return largefiles. Otherwise you are limited to 2 gigs or smaller.
I notice your file is called item_MW.txt.tmp, does it write it to a temp location that you by-pass when you manually copy it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 01:28 AM
09-19-2007 01:28 AM
Re: copy command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 02:22 AM
09-19-2007 02:22 AM
Re: copy command
You could also be hitting quotas for this user but I suspect that ulimit is your boy.
One way to test this is to put a ulimit command with output directed to a file inside the at'ed script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 03:05 AM
09-19-2007 03:05 AM
Re: copy command
# @(#)B.11.11_LR
cd $d
ulimit $l
umask $m
$<
and "ulimit -a" for the user the script runs under:
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 256000
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 3072
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 05:17 AM
09-19-2007 05:17 AM
Re: copy command
How about a test.
Create a test script that does something simple. Schedule it in cron to run as an "at" job. This will make sure that croning an at works. Then start chipping away at all the other possibilities.
Or
Cut the losses and define another way to re-run the process. Have it go to sleep or just wait until the next cron iteration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 05:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2007 03:27 PM
09-19-2007 03:27 PM
Re: copy command
Could you please paste the contents of crontab, which has all the commands to allow run of jobs or at command or validation dependent of prior job finishing before executing or copying.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 02:31 AM
09-20-2007 02:31 AM
Re: copy command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 02:47 PM
09-20-2007 02:47 PM
Re: copy command
Hi Eric,
Could you please paste the contents of crontab, which has all the commands to allow run of jobs or at command or validation dependent of prior job finishing before executing or copying.
Thank you!