<?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: ftstatus command in shell script not working with cron scheduled in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141184#M317656</link>
    <description>Modify your script!&lt;BR /&gt;&lt;BR /&gt;Instead of&lt;BR /&gt;&lt;BR /&gt;ftstatus&lt;BR /&gt;&lt;BR /&gt;you should use&lt;BR /&gt;&lt;BR /&gt;/full/path/to/ftstatus&lt;BR /&gt;&lt;BR /&gt;Use "whereis ftstatus" to get the path.</description>
    <pubDate>Wed, 06 Feb 2008 14:02:10 GMT</pubDate>
    <dc:creator>Torsten.</dc:creator>
    <dc:date>2008-02-06T14:02:10Z</dc:date>
    <item>
      <title>ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141177#M317649</link>
      <description>ftstatus in HP-UX which outputs FaultTolerant Controllers out in SS7stacks is not working inside a shell script with scheduled cron. but the same commands gets the report while script is executed manually.</description>
      <pubDate>Wed, 06 Feb 2008 13:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141177#M317649</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-06T13:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141178#M317650</link>
      <description>Do you use full pathes for each command in your script?</description>
      <pubDate>Wed, 06 Feb 2008 13:32:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141178#M317650</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-06T13:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141179#M317651</link>
      <description>hey&lt;BR /&gt;&lt;BR /&gt;load the user profile at the beginning of your script to setup your environment.&lt;BR /&gt;&lt;BR /&gt;. /home/username/.profile&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 06 Feb 2008 13:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141179#M317651</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-02-06T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141180#M317652</link>
      <description>i am using full path to execute script in cron.&lt;BR /&gt;is this ok. &lt;BR /&gt;#!/bin/sh&lt;BR /&gt;./root/.profile&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 13:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141180#M317652</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-06T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141181#M317653</link>
      <description>Again: Do you use full pathes for each command in your script?&lt;BR /&gt;&lt;BR /&gt;Due to a limited environment in cron you have only a very limited PATH variable by default.&lt;BR /&gt;Sourcing the profile is not the best workaround here.</description>
      <pubDate>Wed, 06 Feb 2008 13:49:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141181#M317653</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-06T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141182#M317654</link>
      <description>00,10,20,30,40,50 * * * *    /BOC_KK/new.sh&lt;BR /&gt;this is the line in cron and the new.sh file look like this&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;df -k &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;ftstatus &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;when i am executing manually new.sh with sh new.sh it creates a file xyz.txt in /BOC_KK,but the same thing i am putting through cron it outputs xyz.txt with only df -k results.</description>
      <pubDate>Wed, 06 Feb 2008 13:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141182#M317654</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-06T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141183#M317655</link>
      <description>When you manually execute this, your environment contains a fully set PATH variable, something that cron does not provide.  You therefore need to provide the full path name identifying where these things are located.  Something like this:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/df -k &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;/home/kingkhan/ftstatus &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 06 Feb 2008 14:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141183#M317655</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-02-06T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141184#M317656</link>
      <description>Modify your script!&lt;BR /&gt;&lt;BR /&gt;Instead of&lt;BR /&gt;&lt;BR /&gt;ftstatus&lt;BR /&gt;&lt;BR /&gt;you should use&lt;BR /&gt;&lt;BR /&gt;/full/path/to/ftstatus&lt;BR /&gt;&lt;BR /&gt;Use "whereis ftstatus" to get the path.</description>
      <pubDate>Wed, 06 Feb 2008 14:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141184#M317656</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-06T14:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141185#M317657</link>
      <description>matrix:root&amp;gt; whereis ftstatus&lt;BR /&gt;ftstatus:&lt;BR /&gt;matrix:root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; i am getting this output</description>
      <pubDate>Wed, 06 Feb 2008 14:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141185#M317657</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-06T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141186#M317658</link>
      <description>So you probably need to use "find" to find the location of this application.</description>
      <pubDate>Wed, 06 Feb 2008 14:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141186#M317658</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-06T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141187#M317659</link>
      <description>at the command line, enter:&lt;BR /&gt;&lt;BR /&gt;which ftstatus &lt;BR /&gt;-or-&lt;BR /&gt;whence ftstatus&lt;BR /&gt;&lt;BR /&gt;they should report the full path to the app</description>
      <pubDate>Wed, 06 Feb 2008 14:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141187#M317659</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-02-06T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141188#M317660</link>
      <description>when i tried find / -name ftstatus i got it in &lt;BR /&gt;/opt/HP-AIN/SS7/bin/ftstatus &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;&lt;BR /&gt;but no improvement . still i am not getting the expected results&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 14:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141188#M317660</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-06T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141189#M317661</link>
      <description>&amp;gt;but no improvement. still i am not getting the expected results&lt;BR /&gt;&lt;BR /&gt;You'll need to explain what you got and what you want.</description>
      <pubDate>Thu, 07 Feb 2008 07:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141189#M317661</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-07T07:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141190#M317662</link>
      <description>&lt;!--!*#--&gt;this output i am expecting from my script.&lt;BR /&gt;matrix:root&amp;gt; ftstatus&lt;BR /&gt;System :                      matrix&lt;BR /&gt;------------------------------------------------------------&lt;BR /&gt;FT_Controller(FTC)            ACTIVE[OK]&lt;BR /&gt;  DataStore                     ACTIVE&lt;BR /&gt;  ss7SNMPAgent                  ACTIVE&lt;BR /&gt;  SS7_Stack_1_ftc(subFTC)       ACTIVE[OK]&lt;BR /&gt;    SS7_Stack_1_TDx_1             ACTIVE&lt;BR /&gt;    SS7_Stack_1                   ACTIVE&lt;BR /&gt;  SS7_Stack_2_ftc(subFTC)       ACTIVE[OK]&lt;BR /&gt;    SS7_Stack_2_TDx_1             ACTIVE&lt;BR /&gt;    SS7_Stack_2                   ACTIVE&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;iam able to get this output one i manually execute the script,but the same thing i am not getting while the script is scheduled through cron.plz help&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2008 12:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141190#M317662</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-07T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141191#M317663</link>
      <description>this output i am expecting from my script.&lt;BR /&gt;root&amp;gt; ftstatus&lt;BR /&gt;System :                      matrix&lt;BR /&gt;------------------------------------------------------------&lt;BR /&gt;FT_Controller(FTC)           ACTIVE[OK]&lt;BR /&gt;  DataStore                   ACTIVE&lt;BR /&gt;  ss7SNMPAgent                ACTIVE&lt;BR /&gt;  SS7_Stack_1_ftc(subFTC)       ACTIVE[OK]&lt;BR /&gt;   SS7_Stack_1_TDx_1             ACTIVE&lt;BR /&gt;   SS7_Stack_1                   ACTIVE&lt;BR /&gt;  SS7_Stack_2_ftc(subFTC)       ACTIVE[OK]&lt;BR /&gt;   SS7_Stack_2_TDx_1             ACTIVE&lt;BR /&gt;   SS7_Stack_2                   ACTIVE&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;iam able to get this output one i manually execute the script,but the same thing i am not getting while the script is scheduled through cron.plz help&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2008 12:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141191#M317663</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-02-07T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141192#M317664</link>
      <description>&amp;gt;this output i am expecting from my script.&lt;BR /&gt;&lt;BR /&gt;But what are you getting?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;i manually execute the script,&lt;BR /&gt;&lt;BR /&gt;Have you put absolute paths for every executable you use in your script?&lt;BR /&gt;Or changed PATH to include them?</description>
      <pubDate>Thu, 07 Feb 2008 12:57:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141192#M317664</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-07T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: ftstatus command in shell script not working with cron scheduled</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141193#M317665</link>
      <description>Change your script so it looks EXACTLY like this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;/usr/bin/df -k &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;/opt/HP-AIN/SS7/bin/ftstatus &amp;gt;&amp;gt;/BOC_KK/xyz.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftstatus-command-in-shell-script-not-working-with-cron-scheduled/m-p/4141193#M317665</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-02-07T13:07:31Z</dc:date>
    </item>
  </channel>
</rss>

