<?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: redirect core file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069836#M140441</link>
    <description>Hi Jean-Remi,&lt;BR /&gt;&lt;BR /&gt;Core files are created in the process present  working directory, so you have two options:&lt;BR /&gt;&lt;BR /&gt;1) Move to a larger dir before starting the process:&lt;BR /&gt;cd /other/larger/dir&lt;BR /&gt;/path/to_your/process&lt;BR /&gt;&lt;BR /&gt;2) Explicitly set the $PWD var before starting&lt;BR /&gt;export PWD=/other/larger/dir&lt;BR /&gt;/path/to_your/process&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
    <pubDate>Fri, 12 Sep 2003 12:47:32 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2003-09-12T12:47:32Z</dc:date>
    <item>
      <title>redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069830#M140435</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I would like to know how I can redirect a core file ??&lt;BR /&gt;In fact a huge core is generated under a folder that is too small... I want to generate it under an another folder...&lt;BR /&gt;&lt;BR /&gt;I've tried to do a ln -s /other_folder core &lt;BR /&gt;but the core is not generated in this case..&lt;BR /&gt;&lt;BR /&gt;Have you got some ideas ??&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Remi.</description>
      <pubDate>Fri, 12 Sep 2003 12:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069830#M140435</guid>
      <dc:creator>QUIRICONI</dc:creator>
      <dc:date>2003-09-12T12:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069831#M140436</link>
      <description>Hi Jean-Remi,&lt;BR /&gt;&lt;BR /&gt;How about linking it to /dev/null.&lt;BR /&gt;&lt;BR /&gt;# ln -s /dev/null core &lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 12 Sep 2003 12:36:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069831#M140436</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-09-12T12:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069832#M140437</link>
      <description>ln -s will do the trick.&lt;BR /&gt;&lt;BR /&gt;ln -s /dev/null core.&lt;BR /&gt;&lt;BR /&gt;ln -s /other_file core.</description>
      <pubDate>Fri, 12 Sep 2003 12:38:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069832#M140437</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-09-12T12:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069833#M140438</link>
      <description>If you just want to avoid having it created,&lt;BR /&gt;then you can create a subdirectory in the directory where the core files show up and call it "core" then there will be no core created at all.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 12:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069833#M140438</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-09-12T12:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069834#M140439</link>
      <description>If you do not need the full core dump, you can use 'limit' to - well - limit the core size. Sometimes the start will do&lt;BR /&gt;&lt;BR /&gt;# limit&lt;BR /&gt;cputime         0:0-1&lt;BR /&gt;filesize        4194303 kbytes&lt;BR /&gt;datasize        262144 kbytes&lt;BR /&gt;stacksize       8192 kbytes&lt;BR /&gt;coredumpsize    2097151 kbytes&lt;BR /&gt;memoryuse       4194303 kbytes&lt;BR /&gt;descriptors     60&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Fri, 12 Sep 2003 12:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069834#M140439</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-09-12T12:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069835#M140440</link>
      <description>I think cores by default are generated in the current directory. If you call the offending program from a larger directory, would the core be placed there?</description>
      <pubDate>Fri, 12 Sep 2003 12:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069835#M140440</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-09-12T12:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069836#M140441</link>
      <description>Hi Jean-Remi,&lt;BR /&gt;&lt;BR /&gt;Core files are created in the process present  working directory, so you have two options:&lt;BR /&gt;&lt;BR /&gt;1) Move to a larger dir before starting the process:&lt;BR /&gt;cd /other/larger/dir&lt;BR /&gt;/path/to_your/process&lt;BR /&gt;&lt;BR /&gt;2) Explicitly set the $PWD var before starting&lt;BR /&gt;export PWD=/other/larger/dir&lt;BR /&gt;/path/to_your/process&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 12 Sep 2003 12:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069836#M140441</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-12T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069837#M140442</link>
      <description>Well,&lt;BR /&gt;&lt;BR /&gt;I've tried the command:&lt;BR /&gt;&lt;BR /&gt;[HP-UX]:/tmp&amp;gt;ln -s /folder core&lt;BR /&gt;&lt;BR /&gt;[HP-UX]:/tmp&amp;gt; ll&lt;BR /&gt;core -&amp;gt; ./folder&lt;BR /&gt;core_cprog.c&lt;BR /&gt;core_prog&lt;BR /&gt;&lt;BR /&gt;But the core is not generated at all.&lt;BR /&gt;I need this entire core to analyse it and I need to redirect it in an another folder...</description>
      <pubDate>Fri, 12 Sep 2003 12:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069837#M140442</guid>
      <dc:creator>QUIRICONI</dc:creator>
      <dc:date>2003-09-12T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069838#M140443</link>
      <description>What are permissions on /folder file. The user who runs this program should be able to access /folder file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 13:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069838#M140443</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-09-12T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069839#M140444</link>
      <description>Kents reply above shows us that a core file will not be created if you have linked "core" to a folder.  Unless you have a typo in your post, this is exactly what you have done :)  Therefore, no core.&lt;BR /&gt;&lt;BR /&gt;You should have tried "ln -s /foder/core core"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 13:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069839#M140444</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-12T13:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: redirect core file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069840#M140445</link>
      <description>ok,&lt;BR /&gt;&lt;BR /&gt;ln -s /folder/core core&lt;BR /&gt;&lt;BR /&gt;it works properly.&lt;BR /&gt;&lt;BR /&gt;Thank you all,&lt;BR /&gt;Jean-R??mi.</description>
      <pubDate>Fri, 12 Sep 2003 13:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirect-core-file/m-p/3069840#M140445</guid>
      <dc:creator>QUIRICONI</dc:creator>
      <dc:date>2003-09-12T13:51:26Z</dc:date>
    </item>
  </channel>
</rss>

