<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: copy command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072667#M735355</link>
    <description>Put the ulimit command in the cron'ed script and at'ed script as I asked and direct the output to a file. That should be most definitive. By the way, are you running this in anything other than the POSIX shell?</description>
    <pubDate>Wed, 19 Sep 2007 12:22:01 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-09-19T12:22:01Z</dc:date>
    <item>
      <title>copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072661#M735349</link>
      <description>Good morning.&lt;BR /&gt;  &lt;BR /&gt;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".  &lt;BR /&gt;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: &lt;BR /&gt;"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. "&lt;BR /&gt;&lt;BR /&gt;Just to make it clear, we have been able to successfully copy the file manually so I doubt it's a file size issue.&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Wed, 19 Sep 2007 08:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072661#M735349</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2007-09-19T08:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072662#M735350</link>
      <description>Do you have large files turned on the filesystem you are copying to?&lt;BR /&gt;servera:root /root/ # fsadm -F vxfs /filesystem&lt;BR /&gt;largefiles&lt;BR /&gt;&lt;BR /&gt;Should return largefiles.  Otherwise you are limited to 2 gigs or smaller.&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2007 08:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072662#M735350</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2007-09-19T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072663#M735351</link>
      <description>Largefiles is set on all the filesystems.  The copied file is actually copied to the same location but with just the ".tmp" added to the end.  There's 49 GB available on the filesystem so I don't believe it's running out of room during the copy.</description>
      <pubDate>Wed, 19 Sep 2007 08:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072663#M735351</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2007-09-19T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072664#M735352</link>
      <description>If I can take you at your word that the target filesystem is largefiles enabled (and the keyword "largefiles" in /etc/fstab does NOT insure that the filesystem is largefiles enabled) then you are probably hitting ulimit. Have a look at how ulimit is set in /var/adm/cron/.proto. &lt;BR /&gt;&lt;BR /&gt;You could also be hitting quotas for this user but I suspect that ulimit is your boy. &lt;BR /&gt;One way to test this is to put a ulimit command with output directed to a file inside the at'ed script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072664#M735352</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-09-19T09:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072665#M735353</link>
      <description>I don't have a lot of experience with ulimit.  Here's the output of /var/adm/cron/.proto:&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;cd $d&lt;BR /&gt;ulimit $l&lt;BR /&gt;umask $m&lt;BR /&gt;$&amp;lt;&lt;BR /&gt;&lt;BR /&gt;and "ulimit -a" for the user the script runs under:&lt;BR /&gt;&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         256000&lt;BR /&gt;stack(kbytes)        8192&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 3072&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2007 10:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072665#M735353</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2007-09-19T10:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072666#M735354</link>
      <description>I have never approached this by using a cron job to schedule an "at" job so bear with me.&lt;BR /&gt;&lt;BR /&gt;How about a test.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2007 12:17:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072666#M735354</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-09-19T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072667#M735355</link>
      <description>Put the ulimit command in the cron'ed script and at'ed script as I asked and direct the output to a file. That should be most definitive. By the way, are you running this in anything other than the POSIX shell?</description>
      <pubDate>Wed, 19 Sep 2007 12:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072667#M735355</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-09-19T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072668#M735356</link>
      <description>Hi Eric,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Wed, 19 Sep 2007 22:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072668#M735356</guid>
      <dc:creator>panchpan</dc:creator>
      <dc:date>2007-09-19T22:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072669#M735357</link>
      <description>After a couple of tests, it does look like a ulimit issue.  Thanks for the tips!</description>
      <pubDate>Thu, 20 Sep 2007 09:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072669#M735357</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2007-09-20T09:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: copy command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072670#M735358</link>
      <description>For my reference and knowledge Please --&lt;BR /&gt;&lt;BR /&gt;Hi Eric,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 20 Sep 2007 21:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-command/m-p/4072670#M735358</guid>
      <dc:creator>panchpan</dc:creator>
      <dc:date>2007-09-20T21:47:04Z</dc:date>
    </item>
  </channel>
</rss>

