<?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: crontab -e weird behaviour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5590887#M479263</link>
    <description>&lt;P&gt;Maybe the crontab file has some non-printing characters in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently "crontab -l" filters them out, but "crontab -e" passes the crontab file as-is to the editor, which attempts to display the non-printing character, causing display issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might want to try filtering the non-printable characters out, like this:&lt;/P&gt;&lt;PRE&gt;crontab -l | cat -v - &amp;gt;mycrontab.txt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then edit the mycrontab.txt file and check it for correctness. If the "crontab -l" output contained any non-printable characters, piping it through "cat -v" should have converted them into visible symbols, like "^X" or "M-x".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the mycrontab.txt file is free of extra characters, use it to completely replace your current crontab:&lt;/P&gt;&lt;PRE&gt;crontab mycrontab.txt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also check your local email spool file (/var/mail/fnsonlgr): any error messages from cron are sent as local emails.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2012 17:20:42 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2012-03-20T17:20:42Z</dc:date>
    <item>
      <title>crontab -e weird behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5590303#M479256</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when am doing crontab -l m getting 5 entries.&lt;/P&gt;&lt;P&gt;TEST/home/fnsonlgr &amp;gt; crontab -l&lt;BR /&gt;20 10 * * * /home/fnsonlgr/.profile;/home/fnsonlgr/latest_rep.sh &amp;gt;/outputs/report_timing.log&lt;BR /&gt;30 08,11,17 * * * /home/fnsonlgr/.profile;/fns/gr/r/sh/sendcentral.sh &amp;gt; /outputs/sendcentralgtgb.log&lt;BR /&gt;00 16,18,20 * * * /fns/gr/r/cat/cfpd0903.cron &amp;gt; /outputs/cfpd0903cron.log&lt;BR /&gt;20 11,13 * * * /home/fnsonlgr/.profile;/fns/gr/r/sh/get_tb.sh &amp;gt;/outputs/get_gr_tb_split.log&lt;BR /&gt;30 11,13 * * * /home/fnsonlgr/.profile;/fns/gr/r/sh/gr_tb_split.sh &amp;gt;/outputs/gr_tb_split.sh.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Whereas when m running crontab -e to edit it m displayed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;00 16,18,20 * * * /fns/gr/r/cat/cfpd0903.cron &amp;gt; /outputs/cfpd0903cron.log&lt;BR /&gt;20 11,13 * * * /home/fnsonlgr/.profile;/fns/gr/r/sh/get_tb.sh &amp;gt;/outputs/get_gr_tb_split.log&lt;BR /&gt;30 11,13 * * * /home/fnsonlgr/.profile;/fns/gr/r/sh/gr_tb_split.sh &amp;gt;/outputs/gr_tb_split.sh.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wehn i scrolly my mouse up i see the two entries above it...&lt;/P&gt;&lt;P&gt;Is this putty display issue or cron entry issue .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Becausee i have another user where everything is running fine.&lt;/P&gt;&lt;P&gt;For the above user none of jobs are running .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 09:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5590303#M479256</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2012-03-20T09:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: crontab -e weird behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5590887#M479263</link>
      <description>&lt;P&gt;Maybe the crontab file has some non-printing characters in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently "crontab -l" filters them out, but "crontab -e" passes the crontab file as-is to the editor, which attempts to display the non-printing character, causing display issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might want to try filtering the non-printable characters out, like this:&lt;/P&gt;&lt;PRE&gt;crontab -l | cat -v - &amp;gt;mycrontab.txt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then edit the mycrontab.txt file and check it for correctness. If the "crontab -l" output contained any non-printable characters, piping it through "cat -v" should have converted them into visible symbols, like "^X" or "M-x".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the mycrontab.txt file is free of extra characters, use it to completely replace your current crontab:&lt;/P&gt;&lt;PRE&gt;crontab mycrontab.txt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also check your local email spool file (/var/mail/fnsonlgr): any error messages from cron are sent as local emails.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 17:20:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5590887#M479263</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-03-20T17:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: crontab -e weird behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5592567#M479286</link>
      <description>&lt;P&gt;Are you using the console port on this server?&amp;nbsp; NEVER use the console for general sysadmin work. HP royally messed up terminal support when the GSP (now MP and iLO) first came out by refusing to pass through terminal (like PuTTY) characteristics. Instead, the console port lies to HP-UX and bypasses all the code to handle terminal screen detection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, NEVER hardcode TERM=something or LINES= or COLUMNS= in your profile. vi will seem to mess up the display when the TERM, COLUMNS and LINES values do not match your terminal. The correct way to do this is to remove any code in your /etc/profile and .profile that has tset, and also remove any code that tests to see if TERM is already set. You must run ttytype to programatically test your terminal and set the correct values for TERM, LINES and COLUMNS, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eval $(ttytype -as)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is one ancient bug in HP-UX for terminals like the vt100...virtually all system administrators use the backspace key, but back when the vt100 was a new product, DEC systems typically used the DELETE key, so HP's terminfo database has the vt100 (and all the vt1xx models) using the delete key rather than the backspace key. So you'll need to hardcode: export ERASE="^H";stty erase "^H" And unfortunately, PuTTY's default is also the DEL key - be sure to change that too. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once your terminal matches the terminal variables in your environment, vi should behave correctly. crontab -l (list the lines) is a simple cat of the crontab file so it will be correct. vi believes what your terminal settings are, so if they don't match, strange folding of lines and jumping cursor will be the effect.&amp;nbsp; Use ctrl-L to refresh the screen when you have terminal issues.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2012 02:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5592567#M479286</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2012-03-22T02:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: crontab -e weird behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5592999#M479305</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;You were spot on i had LINES=45 in my .profile</description>
      <pubDate>Thu, 22 Mar 2012 09:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-e-weird-behaviour/m-p/5592999#M479305</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2012-03-22T09:07:42Z</dc:date>
    </item>
  </channel>
</rss>

