<?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 schedule, why? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532217#M869296</link>
    <description>Hi Peston:&lt;BR /&gt;&lt;BR /&gt;This is expected.  &lt;BR /&gt;&lt;BR /&gt;The messages you are seeing are a consequence of the .profile being read during the 'su'. The "not a terminal" message is from stty failing to get the terminal type -- it can't; it's not a interactive login. &lt;BR /&gt;&lt;BR /&gt;One solution is to redirect stdout &amp;amp; stderr to /dev/null, as: &lt;BR /&gt;&lt;BR /&gt;# su - sys800 -c "your_script" &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 23 May 2001 23:39:49 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-05-23T23:39:49Z</dc:date>
    <item>
      <title>Crontab schedule, why?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532216#M869295</link>
      <description>Hi, All.&lt;BR /&gt;&lt;BR /&gt;All of yours input would be appreciated. Thank you in advance to all of your.&lt;BR /&gt;&lt;BR /&gt;I had made some schedule jobs onto the crontab. But I have a bit curious about the crontab functionality. Below are the daily schedule run on crontab:-&lt;BR /&gt;&lt;BR /&gt;0 23 * * * su - sys800 c "/baan4/bse/etc/rc.startjob D1PSI1"&lt;BR /&gt;0 03 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1R01"&lt;BR /&gt;&lt;BR /&gt;Nothing wrong with schedule, but every time when the schedule completed. It would sent a message to root. The message is about :&lt;BR /&gt;&lt;BR /&gt;ttytype: couldn't open /dev/tty for reading&lt;BR /&gt;stty: : Not a typewriter&lt;BR /&gt;stty: : Not a typewriter&lt;BR /&gt;(c)Copyright 1983-1997 Hewlett-Packard Co.,  All Rights Reserved.&lt;BR /&gt;You have mail.&lt;BR /&gt;Not a terminal&lt;BR /&gt;stty: : Not a typewriter&lt;BR /&gt;stty: : Not a typewriter&lt;BR /&gt;&lt;BR /&gt;What did it meant above message?&lt;BR /&gt;&lt;BR /&gt;Perhaps, the schedule must add on redirect input like "2&amp;gt;&amp;amp;1" at the behind the schedule. Then the schedule would look like this:-&lt;BR /&gt;&lt;BR /&gt;0 23 * * * su - sys800 -c "/baan4/bse/etc/rc.startjob D1PSI1 2&amp;gt;&amp;amp;1" &lt;BR /&gt;&lt;BR /&gt;Please help. Thank you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peston Foong.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2001 23:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532216#M869295</guid>
      <dc:creator>Peston Foong</dc:creator>
      <dc:date>2001-05-23T23:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab schedule, why?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532217#M869296</link>
      <description>Hi Peston:&lt;BR /&gt;&lt;BR /&gt;This is expected.  &lt;BR /&gt;&lt;BR /&gt;The messages you are seeing are a consequence of the .profile being read during the 'su'. The "not a terminal" message is from stty failing to get the terminal type -- it can't; it's not a interactive login. &lt;BR /&gt;&lt;BR /&gt;One solution is to redirect stdout &amp;amp; stderr to /dev/null, as: &lt;BR /&gt;&lt;BR /&gt;# su - sys800 -c "your_script" &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2001 23:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532217#M869296</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-23T23:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab schedule, why?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532218#M869297</link>
      <description>Hi, James R&lt;BR /&gt;&lt;BR /&gt;This is the user sys800 .profile that is setting the terminal, maybe we could do something here. My instinct told me that.&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;        if [ "$TERM" = "" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;        else&lt;BR /&gt;                eval ` tset -s -Q `&lt;BR /&gt;        fi&lt;BR /&gt;        stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;        stty hupcl ixon ixoff&lt;BR /&gt;        tabs&lt;BR /&gt;&lt;BR /&gt;But, I couldn't understand the syntax that written above. For example stty hupc1 ixon ixoff. Perhap you can help. Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 May 2001 01:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-schedule-why/m-p/2532218#M869297</guid>
      <dc:creator>Peston Foong</dc:creator>
      <dc:date>2001-05-24T01:48:59Z</dc:date>
    </item>
  </channel>
</rss>

