<?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: Scripting woes... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608717#M35592</link>
    <description>I'd suggest a reboot, but I'm sure we are talking unix here and not some micosoftie os :-))&lt;BR /&gt;&lt;BR /&gt;Maybe a "user &amp;lt; cold_beer" would do?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Wed, 07 Nov 2001 02:46:49 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2001-11-07T02:46:49Z</dc:date>
    <item>
      <title>Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608710#M35585</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a scripting problem I have. The expert&lt;BR /&gt;that I am in script writing (NOT!) gives me this problem and I am swapping out trying to think of the solution. The object of this exercise is to run a command to a logile. If the log file is empty continue to run the next command, if not exit and run the next chain, or have I got the  whole thing wrong and should go back to school?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;omnimm -list_scratch_media $POOL1 &amp;gt; $POOL_LOG&lt;BR /&gt;if (log file is empty, what is the syntax I use) &lt;BR /&gt;  then&lt;BR /&gt;  omnimm -move_medium $tape1 $POOL1&lt;BR /&gt;  else&lt;BR /&gt;  echo "Scratch Tape already available in $POOL1"&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;TIA&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 07 Nov 2001 02:07:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608710#M35585</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T02:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608711#M35586</link>
      <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;How about;&lt;BR /&gt;&lt;BR /&gt;# if (( `wc -c &amp;lt; $POOL_LOG` == 0 ))&lt;BR /&gt;&amp;gt; then&lt;BR /&gt;&amp;gt; echo "empty file!"&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 07 Nov 2001 02:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608711#M35586</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-07T02:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608712#M35587</link>
      <description>-s file   True, if file exists and has size greater than zero.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 07 Nov 2001 02:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608712#M35587</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-07T02:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608713#M35588</link>
      <description>-e file   True, if file exists.&lt;BR /&gt;&lt;BR /&gt;if [[ -s logfile ]]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.physik.uni-freiburg.de/cip/man.cgi?1" target="_blank"&gt;http://www.physik.uni-freiburg.de/cip/man.cgi?1&lt;/A&gt; ksh</description>
      <pubDate>Wed, 07 Nov 2001 02:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608713#M35588</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-07T02:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608714#M35589</link>
      <description>How about&lt;BR /&gt;&lt;BR /&gt;if [! -s ${POOL_LOG} ]&lt;BR /&gt; # the size of  the logfile is zero&lt;BR /&gt;&lt;BR /&gt;See man test for details</description>
      <pubDate>Wed, 07 Nov 2001 02:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608714#M35589</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T02:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608715#M35590</link>
      <description>to test..&lt;BR /&gt;if [[ ! -s $Logfile ]];then&lt;BR /&gt;echo "empty file"&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 02:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608715#M35590</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-11-07T02:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608716#M35591</link>
      <description>Thanks Guys,&lt;BR /&gt;&lt;BR /&gt;I think I have enough to stop swapping out. I probably need to add some more RAM or increase Buffer Cache!&lt;BR /&gt;&lt;BR /&gt;Points to awarded as soon as test is complete!&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;-Michael&lt;BR /&gt;(Never be afraid to ask, nobody knows everything!)</description>
      <pubDate>Wed, 07 Nov 2001 02:31:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608716#M35591</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T02:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608717#M35592</link>
      <description>I'd suggest a reboot, but I'm sure we are talking unix here and not some micosoftie os :-))&lt;BR /&gt;&lt;BR /&gt;Maybe a "user &amp;lt; cold_beer" would do?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 07 Nov 2001 02:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608717#M35592</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-07T02:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608718#M35593</link>
      <description>Thanks again, Deepak yours had a space omitted.... hence only a '9' from the judges.....&lt;BR /&gt;&lt;BR /&gt;Harry, how about this...&lt;BR /&gt;if [ ! -s ${FRIDGE} ]&lt;BR /&gt;  then /usr/local/bin/different_fridge&lt;BR /&gt;  else&lt;BR /&gt;  echo "Dear I'm off to the pub!"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;and BTW was the school that I needed to attend&lt;BR /&gt;have a pre-requisite of knowing how to read &lt;BR /&gt;German?? :^))&lt;BR /&gt;&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 07 Nov 2001 03:23:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608718#M35593</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-07T03:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608719#M35594</link>
      <description>Nein, but they just happened to be the first in my search list.</description>
      <pubDate>Wed, 07 Nov 2001 03:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608719#M35594</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-07T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608720#M35595</link>
      <description>I forgot to add that I like the script, especially the _fridge extension to the language.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 07 Nov 2001 03:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608720#M35595</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-07T03:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608721#M35596</link>
      <description>missing space? oh well...maybe i need some of that cold_beer too!</description>
      <pubDate>Wed, 07 Nov 2001 06:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608721#M35596</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting woes...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608722#M35597</link>
      <description>missing space, eh? oh well...maybe i could do with some of that cold_beer too!</description>
      <pubDate>Wed, 07 Nov 2001 06:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-woes/m-p/2608722#M35597</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T06:32:19Z</dc:date>
    </item>
  </channel>
</rss>

