<?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: Script issue, help! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926666#M409151</link>
    <description>Can you post a complete run of the scripts with the "-x' debug option set for both?&lt;BR /&gt;&lt;BR /&gt;Everything looks correct, but seeing the debug output would be helpful.</description>
    <pubDate>Fri, 16 Sep 2005 09:15:49 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-09-16T09:15:49Z</dc:date>
    <item>
      <title>Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926652#M409137</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script (dell_MAN_get.sh) which calls a couple of sub-scripts and basically FTP's particular filespecs from a remote server, sorts these files accordingly (sub-script 'dell_MAN_sort.sh'), checks for rejected files before 'at'ing (rescheduling) itself again and resuming the process.&lt;BR /&gt;&lt;BR /&gt;The problem I have is that the script does not get past the 'dell_MAN_sort.sh' sub-script and as such the files do not get checked for rejects or more importantly rescheduled.&lt;BR /&gt;&lt;BR /&gt;I have attached the two scripts, big points to any effective helpers.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Dermot.</description>
      <pubDate>Fri, 16 Sep 2005 04:57:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926652#M409137</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T04:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926653#M409138</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;........and the problemic sub-script which works corectly but does not return back to the main script.</description>
      <pubDate>Fri, 16 Sep 2005 05:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926653#M409138</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T05:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926654#M409139</link>
      <description>What does set -x gives for problematic script??</description>
      <pubDate>Fri, 16 Sep 2005 05:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926654#M409139</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-09-16T05:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926655#M409140</link>
      <description>it doesn't give any errors, the script runs perfectly with error code 0. Something must happen upon completion of this sub-script  however as nothing else within the main script gets executed afterwards??</description>
      <pubDate>Fri, 16 Sep 2005 05:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926655#M409140</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T05:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926656#M409141</link>
      <description>Instead of redirecting the output of the at in 'dell_MAN_sort.sh' to /dev/null try redirecting it to a file. You may find the o/s is prompting you for something at that point?</description>
      <pubDate>Fri, 16 Sep 2005 05:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926656#M409141</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926657#M409142</link>
      <description>Hi Stephen,&lt;BR /&gt;&lt;BR /&gt;The redirection to the /dev/null has actually been commented out of the script. I can also see from the 'set -x' that the script isn't even reaching this point.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2005 06:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926657#M409142</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T06:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926658#M409143</link>
      <description>Sorry, I noticed that immediately after posting. Can you flag the line the script reaches (from your set -x output).</description>
      <pubDate>Fri, 16 Sep 2005 07:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926658#M409143</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T07:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926659#M409144</link>
      <description>Stephen, yes, the 'set -x' output shows the script reaches the bottom of the dell_MAN_sort sub-script but nothing else. If you look at the subscript I even echo the "fi" at the bottom of the script, which it does.</description>
      <pubDate>Fri, 16 Sep 2005 08:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926659#M409144</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926660#M409145</link>
      <description>So your post "Sep 16, 2005 10:01:04 GMT" has dell_MAN_sort.sh attached - just to be clear. &lt;BR /&gt;&lt;BR /&gt;Does "set -x" echo the "done" as well?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2005 09:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926660#M409145</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926661#M409146</link>
      <description>Worth putting &lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;at the beginning of del_MAN_sort.sh perhaps? Or whatever shell you want to run it under.</description>
      <pubDate>Fri, 16 Sep 2005 09:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926661#M409146</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T09:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926662#M409147</link>
      <description>Yes thats correct.&lt;BR /&gt;&lt;BR /&gt;It echo's the done also plus I have included an exit 1 in an attempt it force it to revert back to the main script but this doesn't work either.&lt;BR /&gt;&lt;BR /&gt;I have actually included the shell (#!/bin/sh) atthe beginning of the script also but simply haven't included this in my attachment, apologies about that.&lt;BR /&gt;&lt;BR /&gt;D.</description>
      <pubDate>Fri, 16 Sep 2005 09:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926662#M409147</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926663#M409148</link>
      <description>So you get the "done" message, but not the output of "$?" etc? And then the "main" script stops? Or am I misunderstanding?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2005 09:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926663#M409148</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926664#M409149</link>
      <description>Also, when you call dell_MAN_sort.sh from the "main" script have you tried calling it thus&lt;BR /&gt;&lt;BR /&gt;/sbin/sh -x $SCRIPTDIR/dell_MAN_sort.sh&lt;BR /&gt;&lt;BR /&gt;Just as a matter of interest...</description>
      <pubDate>Fri, 16 Sep 2005 09:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926664#M409149</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-16T09:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926665#M409150</link>
      <description>Stephen, yes that is exactly what is happening.&lt;BR /&gt;&lt;BR /&gt;I haven't actually called the subscript from the main script in that exact format but I'll give to a go.....</description>
      <pubDate>Fri, 16 Sep 2005 09:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926665#M409150</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926666#M409151</link>
      <description>Can you post a complete run of the scripts with the "-x' debug option set for both?&lt;BR /&gt;&lt;BR /&gt;Everything looks correct, but seeing the debug output would be helpful.</description>
      <pubDate>Fri, 16 Sep 2005 09:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926666#M409151</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-09-16T09:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926667#M409152</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it may not help, but try changing the line&lt;BR /&gt;&lt;BR /&gt;for FILENAME in [ `cat $SRCDIR/man_files` ]; do&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;for FILENAME in $(cat $SRCDIR/man_files); do&lt;BR /&gt;&lt;BR /&gt;as I think the shell will regard the brackets as file names...&lt;BR /&gt;Does man_files contain only plain files?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Fri, 16 Sep 2005 09:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926667#M409152</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-09-16T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926668#M409153</link>
      <description>John, thanks for your suggestion but unfortunately that didn't help on this occasion. The host that is running the script is currently down for maintanence and as I am out of the office on Monday I will be happy to try these any further suggestions for this on Tuesday.&lt;BR /&gt;&lt;BR /&gt;Patrick, I will gladly forward you the debug for this on Tuesday.&lt;BR /&gt;&lt;BR /&gt;Stephen, I will also look forward to calling the subscript in the manner you suggested.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dermot&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Sep 2005 11:00:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926668#M409153</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-09-16T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926669#M409154</link>
      <description>Dermot,&lt;BR /&gt;&lt;BR /&gt;IMHO, the shell is getting confused between command substitution and test command syntax i.e. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; for FILENAME in [ `cat $SRCDIR/man_files` ]; do &amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;The above command will set the variable FILENAME to the name of the files in the $SRCDIR punctuated by brackets. Change the above for loop to:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; for FILENAME in `cat $SRCDIR/man_files` ; do &amp;lt;&amp;lt;&lt;BR /&gt;OR&lt;BR /&gt;&amp;gt;&amp;gt; for FILENAME in $(cat $SRCDIR/man_files) ; do &amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;hope it helps!!!</description>
      <pubDate>Fri, 16 Sep 2005 11:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926669#M409154</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-09-16T11:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926670#M409155</link>
      <description>Hi again Dermot,&lt;BR /&gt;&lt;BR /&gt;could you please show us what dell_file_check.sh does?&lt;BR /&gt;&lt;BR /&gt;and perhaps make an "ls -l" on the the list of files in $SRCDIR/man_files? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Sep 2005 06:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926670#M409155</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-09-19T06:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue, help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926671#M409156</link>
      <description>I am recommending you to make a single script. It will reduce the confusion and time.&lt;BR /&gt;&lt;BR /&gt;Just change script as functions in the same script. &lt;BR /&gt;&lt;BR /&gt;Like,&lt;BR /&gt;&lt;BR /&gt;sort()&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;reject()&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;If you are not sure then attach all relavent scripts to your requirement here. It will give an opportunity to give quick and effective solution.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 19 Sep 2005 06:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue-help/m-p/4926671#M409156</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-19T06:52:57Z</dc:date>
    </item>
  </channel>
</rss>

