<?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: &amp;quot;top -c&amp;quot; doesn't work from  under cron in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086985#M63410</link>
    <description>youcan try like this&lt;BR /&gt;&lt;BR /&gt;export UNIX95;top -d 1 -n 2</description>
    <pubDate>Tue, 08 Jan 2008 09:22:11 GMT</pubDate>
    <dc:creator>Jeeshan</dc:creator>
    <dc:date>2008-01-08T09:22:11Z</dc:date>
    <item>
      <title>"top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086981#M63406</link>
      <description>I want to save "top -c" output into a file for parsing it.&lt;BR /&gt;&lt;BR /&gt;I use this command:&lt;BR /&gt;/usr/bin/top -bc  -n1 &amp;gt;/tmp/top.out&lt;BR /&gt;&lt;BR /&gt;This works nice from a command line, but when I run it under cron, "top" output is cutted to 80 symbols, so I don't see command line for each process.&lt;BR /&gt;I guess it is related to the fact, that it is no terminal attached when script is running under cron. But how to fix this?</description>
      <pubDate>Tue, 08 Jan 2008 08:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086981#M63406</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2008-01-08T08:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: "top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086982#M63407</link>
      <description>export  COLUMNS=127&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2008 08:17:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086982#M63407</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2008-01-08T08:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: "top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086983#M63408</link>
      <description>You can do like this&lt;BR /&gt;&lt;BR /&gt;#export UNIX95=1;top -h -n5 -d1 -f &lt;FILE_NAME to="" save=""&gt;&lt;BR /&gt;&lt;BR /&gt;It'll run from crontab also.&lt;/FILE_NAME&gt;</description>
      <pubDate>Tue, 08 Jan 2008 08:18:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086983#M63408</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-01-08T08:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: "top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086984#M63409</link>
      <description>[root@linux1 ~]# export UNIX95=1;top -h -n5 -d1 -f  /tmp/top.out&lt;BR /&gt;        top: procps version 3.2.3&lt;BR /&gt;usage:  top -hv | -bcisS -d delay -n iterations [-u user | -U user] -p pid [,pid ...]&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2008 08:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086984#M63409</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2008-01-08T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: "top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086985#M63410</link>
      <description>youcan try like this&lt;BR /&gt;&lt;BR /&gt;export UNIX95;top -d 1 -n 2</description>
      <pubDate>Tue, 08 Jan 2008 09:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086985#M63410</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-01-08T09:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: "top -c" doesn't work from  under cron</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086986#M63411</link>
      <description>If it's just for one instance of the command, you can use set the variable in the same command, instead of exporting the variable, i.e.&lt;BR /&gt;&lt;BR /&gt;UNIX95=1 top -d1 -n2&lt;BR /&gt;&lt;BR /&gt;This sets the variable for that single command.</description>
      <pubDate>Tue, 08 Jan 2008 11:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-top-c-quot-doesn-t-work-from-under-cron/m-p/5086986#M63411</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2008-01-08T11:08:17Z</dc:date>
    </item>
  </channel>
</rss>

