<?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: Expect script not running in Crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443896#M207668</link>
    <description>Hi Ashok,&lt;BR /&gt;&lt;BR /&gt;Most probably the environment as mentioned before. You can get more information from the following.&lt;BR /&gt;&lt;BR /&gt;1. Check the mailbox of the user you are running the script as on the box. Login as that user and run 'elm' and look at the mail. Any errors will go to the local mail if not  auto forwarded.&lt;BR /&gt;2. Redirect the errors to some file and look at the file after the job is run.&lt;BR /&gt;&lt;BR /&gt;For ex., make your crontab as&lt;BR /&gt;&lt;BR /&gt;12 * * * * /your_dir/your_scr &amp;gt;&amp;gt; /tmp/your_scr.out 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;You will get clues from the above.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Wed, 15 Dec 2004 01:30:02 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-12-15T01:30:02Z</dc:date>
    <item>
      <title>Expect script not running in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443893#M207665</link>
      <description>I have a shell script which inturn runs an expect script which just telnets to another machine..&lt;BR /&gt;Its running fine when i run the shell script manually&lt;BR /&gt;but not when in crontab</description>
      <pubDate>Tue, 14 Dec 2004 23:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443893#M207665</guid>
      <dc:creator>Ashok_17</dc:creator>
      <dc:date>2004-12-14T23:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expect script not running in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443894#M207666</link>
      <description>You probably do not have your environment set up correctly for the script to run via cron.&lt;BR /&gt;&lt;BR /&gt;You must remember that when something runs from cron, the environment is VERY VERY sparse.  There is little, or no, PATH environment which is the usual cause of problems.&lt;BR /&gt;&lt;BR /&gt;Set ANY and ALL environment variables you need within the script itself.  You also should fully qualify ALL programs and commands that you run within the scripts so that you know exactly which ones are running and you have the exact path to them.</description>
      <pubDate>Wed, 15 Dec 2004 00:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443894#M207666</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-12-15T00:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expect script not running in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443895#M207667</link>
      <description>from command line:&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; /tmp/regular.env.txt&lt;BR /&gt;&lt;BR /&gt;from the script running in cron&lt;BR /&gt;&lt;BR /&gt;env &amp;gt; /tmp/cron.env.txt&lt;BR /&gt;&lt;BR /&gt;diff /tmp/cron.env.txt /tmp/regular.env.txt&lt;BR /&gt;&lt;BR /&gt;You will notice a massive difference.&lt;BR /&gt;&lt;BR /&gt;Any variable could cook this process.&lt;BR /&gt;&lt;BR /&gt;Look first at PATH&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 15 Dec 2004 01:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443895#M207667</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-12-15T01:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expect script not running in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443896#M207668</link>
      <description>Hi Ashok,&lt;BR /&gt;&lt;BR /&gt;Most probably the environment as mentioned before. You can get more information from the following.&lt;BR /&gt;&lt;BR /&gt;1. Check the mailbox of the user you are running the script as on the box. Login as that user and run 'elm' and look at the mail. Any errors will go to the local mail if not  auto forwarded.&lt;BR /&gt;2. Redirect the errors to some file and look at the file after the job is run.&lt;BR /&gt;&lt;BR /&gt;For ex., make your crontab as&lt;BR /&gt;&lt;BR /&gt;12 * * * * /your_dir/your_scr &amp;gt;&amp;gt; /tmp/your_scr.out 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;You will get clues from the above.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 15 Dec 2004 01:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443896#M207668</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-12-15T01:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expect script not running in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443897#M207669</link>
      <description>Thank u all for ur timely suggestions&lt;BR /&gt;&lt;BR /&gt;I debugged the error..&lt;BR /&gt;&lt;BR /&gt;I used sleep.. after the sleep-expect and&lt;BR /&gt;pwd-expect. and at the end i used interact..&lt;BR /&gt;&lt;BR /&gt;I now changed it to ..no sleeps..&lt;BR /&gt;and expect eof at end of expect script..&lt;BR /&gt;&lt;BR /&gt;Thanku all once again.&lt;BR /&gt;I keep informing u about my problems.. in future</description>
      <pubDate>Wed, 15 Dec 2004 02:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/expect-script-not-running-in-crontab/m-p/3443897#M207669</guid>
      <dc:creator>Ashok_17</dc:creator>
      <dc:date>2004-12-15T02:14:01Z</dc:date>
    </item>
  </channel>
</rss>

