<?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 Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072663#M74090</link>
    <description>Hello,&lt;BR /&gt;I had put this question earlier on this forum and couldnt get a reply. I am not able to solve it myself and hence this attempt once more. Please see if anybody has any wise words for me.&lt;BR /&gt;I have this long shell script that I have ported to Linux from HPUX. It is running fine on HPUX. I am running it under ksh in both the places.&lt;BR /&gt;On Linux it gives me an error message that doesn't give me any clue to what is happening. The error message is this.&lt;BR /&gt;SquDex: binLinux/Milling[128]: 0.00: unexpected `.'&lt;BR /&gt;SquDex is the main program that I started and binLinux/Milling is the other program it calls in between. I have no idea what this means: 0.00: unexpected `.'&lt;BR /&gt;I tried to run set -vx, but that doesn't give me any clue. Is there a way to run shell scripts line by line and debug?&lt;BR /&gt;Or does anybody have any clue what such an error means?&lt;BR /&gt;THe program runs and gives me the out put but since this error message is coming, I cant run the program in the production env. Please let me know if anybody has any suggestions...&lt;BR /&gt;Regards&lt;BR /&gt;Thanks in anticipation...&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Sep 2003 19:48:49 GMT</pubDate>
    <dc:creator>Samuel Mathew</dc:creator>
    <dc:date>2003-09-16T19:48:49Z</dc:date>
    <item>
      <title>Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072663#M74090</link>
      <description>Hello,&lt;BR /&gt;I had put this question earlier on this forum and couldnt get a reply. I am not able to solve it myself and hence this attempt once more. Please see if anybody has any wise words for me.&lt;BR /&gt;I have this long shell script that I have ported to Linux from HPUX. It is running fine on HPUX. I am running it under ksh in both the places.&lt;BR /&gt;On Linux it gives me an error message that doesn't give me any clue to what is happening. The error message is this.&lt;BR /&gt;SquDex: binLinux/Milling[128]: 0.00: unexpected `.'&lt;BR /&gt;SquDex is the main program that I started and binLinux/Milling is the other program it calls in between. I have no idea what this means: 0.00: unexpected `.'&lt;BR /&gt;I tried to run set -vx, but that doesn't give me any clue. Is there a way to run shell scripts line by line and debug?&lt;BR /&gt;Or does anybody have any clue what such an error means?&lt;BR /&gt;THe program runs and gives me the out put but since this error message is coming, I cant run the program in the production env. Please let me know if anybody has any suggestions...&lt;BR /&gt;Regards&lt;BR /&gt;Thanks in anticipation...&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2003 19:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072663#M74090</guid>
      <dc:creator>Samuel Mathew</dc:creator>
      <dc:date>2003-09-16T19:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072664#M74091</link>
      <description>Post the script.&lt;BR /&gt;&lt;BR /&gt;Check that the shell statement at the top is valid.&lt;BR /&gt;&lt;BR /&gt;I do not recall your earlier thread.  I have never met a HP script I could not port to Linux or vice versa.&lt;BR /&gt;&lt;BR /&gt;I will check the thread later.&lt;BR /&gt;&lt;BR /&gt;If I help, please assign points.  I'm in quite a Linux drought lately, lots of thank you's 10 points this week total.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 16 Sep 2003 20:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072664#M74091</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-16T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072665#M74092</link>
      <description>This thread rings bells..  I remember going through parts of this, finding/fixing 5-6 points where problems occured, and posting back, then we didn't hear from you again.&lt;BR /&gt;&lt;BR /&gt;There are something liek 5-6 different scritps in total, including various Awk routiens, is that correct?&lt;BR /&gt;&lt;BR /&gt;I remember posting back a fixed routine (for the segment posted), but havnig no test data, I couldn't confirm everything.</description>
      <pubDate>Tue, 16 Sep 2003 23:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072665#M74092</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-09-16T23:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072666#M74093</link>
      <description>Just my opinion, but the error message seems to say that the floating point number 0.00 is invalid, no decimal place expected. So try the integer value 0 instead...&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Sep 2003 15:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072666#M74093</guid>
      <dc:creator>David Asgeirsson</dc:creator>
      <dc:date>2003-09-17T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072667#M74094</link>
      <description>Steven/Staurt/David,&lt;BR /&gt;I didn't get any of the scripts back. I am attaching four of the scripts. SquDex is the first one to be run. This calls the Squaring and then it calls the Milling and from there GenMIll is called. I can see the parameters getting assigned the 0.00 values. I ran the script with set -xv on the first line in 'Milling' program and if you see this is where it gets the problem.&lt;BR /&gt; &amp;gt;&amp;gt; Kiwa3_Squaring.nc&lt;BR /&gt;+ binLinux/GenMill Kiwa3 RotBro 1 0 1 0.00&lt;BR /&gt;+ echo 0.00&lt;BR /&gt;+ gawk -F. {print $1}&lt;BR /&gt;+ Bro1=0&lt;BR /&gt;+ gawk -vOp=1 -vOffset=0.0,0.0,0.0 -vBro=0 -vSafeZ=11.2912 -vBlk=0 -f awk/Position usr/Kiwa3_Squaring.par usr/Kiwa3_Station#1.par FixLib&lt;BR /&gt;+ WriteOps&lt;BR /&gt;./SquDex: binLinux/Milling[129]: 0.00: unexpected `.'&lt;BR /&gt;./SquDex: binLinux/Milling[129]: 0.00: unexpected `.'&lt;BR /&gt;+ ReadOpLine 2 1&lt;BR /&gt;&lt;BR /&gt;The last two lines are the errors. I am attaching the tar file that contains the four programs.  I hope if I can define that as integar the problem may be over.&lt;BR /&gt;THanks for the help&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Sep 2003 18:19:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072667#M74094</guid>
      <dc:creator>Samuel Mathew</dc:creator>
      <dc:date>2003-09-19T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072668#M74095</link>
      <description>Modify 'Milling', throw '-x' on the end of the #! line.  Re-run, see what gets passed where.</description>
      <pubDate>Sun, 21 Sep 2003 22:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072668#M74095</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-09-21T22:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072669#M74096</link>
      <description>Stuart,&lt;BR /&gt;Thanks. The output shown in my previous e-mail is the result of putting -x&lt;BR /&gt;Kiwa3_Squaring.nc&lt;BR /&gt;+ binLinux/GenMill Kiwa3 RotBro 1 0 1 0.00&lt;BR /&gt;+ echo 0.00&lt;BR /&gt;+ gawk -F. {print $1}&lt;BR /&gt;+ Bro1=0&lt;BR /&gt;+ gawk -vOp=1 -vOffset=0.0,0.0,0.0 -vBro=0 -vSafeZ=11.2912 -vBlk=0 -f awk/Position usr/Kiwa3_Squaring.par usr/Kiwa3_Station#1.par FixLib&lt;BR /&gt;+ WriteOps&lt;BR /&gt;./SquDex: binLinux/Milling[129]: 0.00: unexpected `.'&lt;BR /&gt;./SquDex: binLinux/Milling[129]: 0.00: unexpected `.'&lt;BR /&gt;+ ReadOpLine 2 1&lt;BR /&gt;&lt;BR /&gt;The output RotBro 1 0 1 0.00 and the vOffset=0.0,0.0,0.0 are the ones that cause the errors below that I guess.(My guess is not very good as I don't have much insight into shell scripts). MY question will be to how to get them to be '0' rather than 0.0. Where I do define the variable associated with them to be integers with out decimal places. One thing that I didn't understand is why they ran ok in HP-UX, but has this problem in Linux. COuld it be because of anything else. If so, what and how could I get over it?&lt;BR /&gt;Thanks for the inputs. I will remember to assign points&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2003 05:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072669#M74096</guid>
      <dc:creator>Samuel Mathew</dc:creator>
      <dc:date>2003-09-22T05:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072670#M74097</link>
      <description>Where does '$Bro' get set?</description>
      <pubDate>Mon, 22 Sep 2003 20:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072670#M74097</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-09-22T20:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072671#M74098</link>
      <description>Basics:&lt;BR /&gt; &lt;BR /&gt;Have you changed the shell from /bin/ksh or do you have a shell on your system.&lt;BR /&gt; &lt;BR /&gt;The first thing I always do to a script in conversion is change that.&lt;BR /&gt; &lt;BR /&gt;Of course it would have failed before line 91 in that case.&lt;BR /&gt; &lt;BR /&gt;I recently fixed an HP-UX script that was using the shift command to wipe out its $1 and $2 variables.  Nothing like that here.&lt;BR /&gt; &lt;BR /&gt;Could there be an extraneous character in the script tripping it up.  The error almost looks like when the closed quotes is missing in a script.&lt;BR /&gt; &lt;BR /&gt;echo "schmo bagel&lt;BR /&gt;&lt;BR /&gt;instead of &lt;BR /&gt; &lt;BR /&gt;echo "schmo bagel"&lt;BR /&gt;&lt;BR /&gt;Its not that simple, but one nasty little inviviible character can mess it up.&lt;BR /&gt;&lt;BR /&gt;I've finally gotten to downloading the script and am attempting to run it.&lt;BR /&gt;&lt;BR /&gt;I just run it ./Milling&lt;BR /&gt;&lt;BR /&gt;No command line parameters?&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Sep 2003 23:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072671#M74098</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-22T23:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072672#M74099</link>
      <description>Stuart,&lt;BR /&gt;$Bro gets set in GenMill as I understand&lt;BR /&gt;Steven,&lt;BR /&gt;Yes, I have set up /bin/ksh as my environment. I have ksh running.&lt;BR /&gt;The first script to run is SquDex. That calls Milling and then GenMill and Squaring. Since you don't have a lot of the data files, it may give errors. But I am not sure if that will stall everything. To send the data files, it will be impossible as it will run into many MBs.&lt;BR /&gt;As you suggested I also suspect some where " is missing. But how do I find that? Is there any way, to match it using a debug program?&lt;BR /&gt;Thanks for your help. I look forward to hearing something more on this.&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 23 Sep 2003 10:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072672#M74099</guid>
      <dc:creator>Samuel Mathew</dc:creator>
      <dc:date>2003-09-23T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072673#M74100</link>
      <description>What you need in this case is an editor with a syntax checker, preferably one that highlights and color codes the code.&lt;BR /&gt; &lt;BR /&gt;There is a mistake, and I can't find it visually.&lt;BR /&gt; &lt;BR /&gt;So.&lt;BR /&gt; &lt;BR /&gt;In Linux, you might try tucows.com and search for editor shell.  You are likekly to find a no cost program that will do the job in your X-Windows or even telnet/ssh environment.&lt;BR /&gt; &lt;BR /&gt;If that doesn't work tucows or download.com has a few tools for windows that might help.&lt;BR /&gt; &lt;BR /&gt;Same search critera.  I've got some manual labor on the hold homestead(backyard) so I won't get to looking for a tool for a day or so.&lt;BR /&gt; &lt;BR /&gt;Good Luck.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Tue, 23 Sep 2003 14:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072673#M74100</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-23T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error message on Shell Program in Linux (this runs perfectly under HP-UX 10.20)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072674#M74101</link>
      <description>Make sure the lines don't end with a CR (^M).&lt;BR /&gt; &lt;BR /&gt;The only other time I've seen unreasonable results is when that occurs.&lt;BR /&gt; &lt;BR /&gt;As for $Bro, no, it's not set in GenMill, it gets passed to it from Milling.&lt;BR /&gt; &lt;BR /&gt;Milling:91: binLinux/GenMill $Mill RotBro $Stat $Blk $OpN $Bro&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Sep 2003 19:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-message-on-shell-program-in-linux-this-runs-perfectly/m-p/3072674#M74101</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-09-23T19:23:33Z</dc:date>
    </item>
  </channel>
</rss>

