<?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: Running scripts fron cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080563#M440401</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;Cron is more for non-interactive scripts! You cannot change its behaviour. Of course, you can run the script using the cron and which takes its input from a file.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;...&lt;BR /&gt;INPUT=$(cat /home/yogeeraj/portnum.txt)&lt;BR /&gt;if [ $INPUT = 'XYZ' ]; then&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Wed, 21 Nov 2007 03:54:08 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2007-11-21T03:54:08Z</dc:date>
    <item>
      <title>Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080559#M440397</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am using HP-UX taaput01 B.11.11 U 9000/800.&lt;BR /&gt;I have one sh scripts xyz.sh. &lt;BR /&gt;&lt;BR /&gt;./xyz.sh &lt;BR /&gt;&lt;BR /&gt;it ask enter the port no .&lt;BR /&gt;&lt;BR /&gt;If i want to run it fron cron then how can i supply the input to this scripts.&lt;BR /&gt;&lt;BR /&gt;Could some one please give some thought.&lt;BR /&gt;&lt;BR /&gt;Regard's&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2007 01:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080559#M440397</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-11-21T01:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080560#M440398</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;You modify your script xyz.sh to accept the first parameter $1 with port number. In the script the value of variable $1 is the one passed as parameter to xyz.sh from the prompt. If port number is static, you need not have this parameter rather you could hardcode it.&lt;BR /&gt;&lt;BR /&gt;you can define cron job as &lt;BR /&gt;&lt;BR /&gt;0 15 * * */home/abc/xyz.sh 5320 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Srikanth</description>
      <pubDate>Wed, 21 Nov 2007 03:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080560#M440398</guid>
      <dc:creator>Srikanth Arunachalam</dc:creator>
      <dc:date>2007-11-21T03:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080561#M440399</link>
      <description>Hi Srinikant,&lt;BR /&gt;&lt;BR /&gt;I can understand this. But suppose we can not update the scripts, in that case is it possible or not?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 21 Nov 2007 03:35:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080561#M440399</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-11-21T03:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080562#M440400</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Cron is more for non-interactive scripts! You cannot change its behaviour. Of course, you can run the script using the cron and which takes its input from a file.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;...&lt;BR /&gt;INPUT=$(cat /home/yogeeraj/mvar.txt)&lt;BR /&gt;if [ $INPUT = 'XYZ' ]; then&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 21 Nov 2007 03:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080562#M440400</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-11-21T03:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080563#M440401</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Cron is more for non-interactive scripts! You cannot change its behaviour. Of course, you can run the script using the cron and which takes its input from a file.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;...&lt;BR /&gt;INPUT=$(cat /home/yogeeraj/portnum.txt)&lt;BR /&gt;if [ $INPUT = 'XYZ' ]; then&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 21 Nov 2007 03:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080563#M440401</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-11-21T03:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080564#M440402</link>
      <description>Hi Gopal,&lt;BR /&gt;&lt;BR /&gt;you can do the following :&lt;BR /&gt;&lt;BR /&gt;1. create a file abc and put the port no. into it&lt;BR /&gt;&lt;BR /&gt;     # cat 999 &amp;gt; /tmp/abc&lt;BR /&gt;&lt;BR /&gt;2. now run xyz.sh and redirect input to /tmp/abc.&lt;BR /&gt;&lt;BR /&gt;    # ./xyz.sh &amp;lt; /tmp/abc&lt;BR /&gt;&lt;BR /&gt;3. Now use the same in cron&lt;BR /&gt;    10 10 * * * /path/xyz.sh &amp;lt; /path/abc &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;RD</description>
      <pubDate>Wed, 21 Nov 2007 03:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080564#M440402</guid>
      <dc:creator>rajdev</dc:creator>
      <dc:date>2007-11-21T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080565#M440403</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;Thanks it is working for me.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 21 Nov 2007 04:29:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080565#M440403</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-11-21T04:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running scripts fron cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080566#M440404</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am closing this thread. I got satisfactory answer.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 21 Nov 2007 04:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-scripts-fron-cron/m-p/5080566#M440404</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-11-21T04:31:20Z</dc:date>
    </item>
  </channel>
</rss>

