<?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: how to save over 1000 commands in .sh_history &amp;amp; not overwrite ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887862#M401855</link>
    <description>The usual suscpects in such a case are cron jobs that erase the HISTFILE&lt;BR /&gt;&lt;BR /&gt;I set my size to 5000 and get hundreds of commands.&lt;BR /&gt;&lt;BR /&gt;I would do a crontab -l and start looking for suspects or&lt;BR /&gt;&lt;BR /&gt;find / -exec grep -l 'sh_history' {} \;&lt;BR /&gt;&lt;BR /&gt;That should identify any scripts that are hammering the file.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 24 Feb 2005 17:19:33 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2005-02-24T17:19:33Z</dc:date>
    <item>
      <title>how to save over 1000 commands in .sh_history &amp; not overwrite ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887861#M401854</link>
      <description>My root's .sh_history does not save too many commands even though HISTSIZE=64000. Gets overwritten after few hundred commands ?&lt;BR /&gt;Why ? &lt;BR /&gt;&lt;BR /&gt;See below:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#/root ==&amp;gt; cat .sh*|wc -l&lt;BR /&gt;206&lt;BR /&gt;&lt;BR /&gt;root's .profile&lt;BR /&gt;===============&lt;BR /&gt;HISTFILE=/root/.sh_history ; export HISTFILE&lt;BR /&gt;print -s "LOGIN - `date '+%m-%d-%E-%H:%M'`"&lt;BR /&gt;HISTSIZE=64000 ; export HISTSIZE&lt;BR /&gt;ENV=/root/.kshrc; export ENV&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 16:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887861#M401854</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2005-02-24T16:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to save over 1000 commands in .sh_history &amp; not overwrite ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887862#M401855</link>
      <description>The usual suscpects in such a case are cron jobs that erase the HISTFILE&lt;BR /&gt;&lt;BR /&gt;I set my size to 5000 and get hundreds of commands.&lt;BR /&gt;&lt;BR /&gt;I would do a crontab -l and start looking for suspects or&lt;BR /&gt;&lt;BR /&gt;find / -exec grep -l 'sh_history' {} \;&lt;BR /&gt;&lt;BR /&gt;That should identify any scripts that are hammering the file.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 24 Feb 2005 17:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887862#M401855</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-24T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to save over 1000 commands in .sh_history &amp; not overwrite ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887863#M401856</link>
      <description>It is the print command doing the hammering .Thansk steve.</description>
      <pubDate>Fri, 16 Dec 2005 14:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887863#M401856</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2005-12-16T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to save over 1000 commands in .sh_history &amp; not overwrite ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887864#M401857</link>
      <description>no response needed.thanks</description>
      <pubDate>Fri, 16 Dec 2005 14:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-save-over-1000-commands-in-sh-history-amp-not-overwrite/m-p/4887864#M401857</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2005-12-16T14:56:44Z</dc:date>
    </item>
  </channel>
</rss>

