<?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: Bad Number/Syntax Errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409220#M202283</link>
    <description>also &lt;BR /&gt;&lt;BR /&gt;su - userid -c '/path/to/script -options' &lt;BR /&gt;&lt;BR /&gt;this is one hint to resolve it. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
    <pubDate>Wed, 27 Oct 2004 12:56:41 GMT</pubDate>
    <dc:creator>Prashant Zanwar_4</dc:creator>
    <dc:date>2004-10-27T12:56:41Z</dc:date>
    <item>
      <title>Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409209#M202272</link>
      <description>A startup script of mine is trying to execute the following command:&lt;BR /&gt;su - &lt;USERID&gt; -c &lt;PATH to="" script=""&gt;&lt;/PATH&gt; &lt;BR /&gt;However every single time the startup script executes I get the following error in the rc.log file:&lt;BR /&gt;^˜\p^^â\: Syntax error&lt;BR /&gt;or:&lt;BR /&gt;Ø\p^¢\: bad number&lt;BR /&gt;&lt;BR /&gt;Now after the system is completely up and running I can execute the same script successfully.&lt;BR /&gt;&lt;BR /&gt;If I take out the alter the command from:&lt;BR /&gt;su - &lt;USERID&gt; -c &lt;PATH to="" script=""&gt;&lt;/PATH&gt;to:&lt;BR /&gt;su &lt;USERID&gt; -c &lt;PATH to="" script=""&gt;&lt;/PATH&gt;&lt;BR /&gt;it works. Altered it back and deleted the user's .profile (so the (-) is executing nothing) and the same errors returned?&lt;BR /&gt;&lt;BR /&gt;Now the difference between the two errors:&lt;BR /&gt;Syntax error and bad number depends on the shell I'm executing the script in. If /sbin/sh its a syntax error and if its the ksh its a bad number.&lt;BR /&gt;&lt;BR /&gt;Any advi&lt;/USERID&gt;&lt;/USERID&gt;&lt;/USERID&gt;</description>
      <pubDate>Wed, 27 Oct 2004 10:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409209#M202272</guid>
      <dc:creator>Kevin_258</dc:creator>
      <dc:date>2004-10-27T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409210#M202273</link>
      <description>When you do su - "user_name" -c "command"&lt;BR /&gt;&lt;BR /&gt;the .profile of the user gets executed. You have a problem with code in .profile, which gives error.&lt;BR /&gt;&lt;BR /&gt;When you do su "user_name -c "command", the user's .profile is not executed.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 27 Oct 2004 10:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409210#M202273</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-27T10:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409211#M202274</link>
      <description>Suggestion: Check and possibly restore /etc/profile&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 27 Oct 2004 10:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409211#M202274</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-27T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409212#M202275</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;is the &lt;USERID&gt;'s shell by any chance c-shell?&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;/USERID&gt;</description>
      <pubDate>Wed, 27 Oct 2004 11:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409212#M202275</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-27T11:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409213#M202276</link>
      <description>No - the users shell is either the ksh or sh not using csh.&lt;BR /&gt;&lt;BR /&gt;Thanks anyway...</description>
      <pubDate>Wed, 27 Oct 2004 12:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409213#M202276</guid>
      <dc:creator>Kevin_258</dc:creator>
      <dc:date>2004-10-27T12:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409214#M202277</link>
      <description>you can try changing the scripts sequence number. Just try to change it to something to make it run at last. There might be something which the environment is looking for and which is not there at the time script is running while coming up. Just put it at last &lt;BR /&gt;&lt;BR /&gt;S999&amp;lt;script&amp;gt; I believe this shall take away the problem..&lt;BR /&gt;&lt;BR /&gt;What happens when you execute the script in /etc/init.d and not the su user_id -c &amp;lt;script&amp;gt; &lt;BR /&gt;&lt;BR /&gt;just check and reply..&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Wed, 27 Oct 2004 12:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409214#M202277</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-27T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409215#M202278</link>
      <description>Hi,&lt;BR /&gt;rather irritating about the shell, as c-shell would have fitted in nicely, also because ksh normally indicates a line number for the syntax error.&lt;BR /&gt;However, "bad number" may come from an if-condition that tries to compare a numeric value to either a text string - or more often - to an unexpanded variable. Is there anything like that in the script?&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K</description>
      <pubDate>Wed, 27 Oct 2004 12:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409215#M202278</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-27T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409216#M202279</link>
      <description>The oracle startup script is my last S999 script in my /sbin/rc3.d directory. Tried inserting a test startup script before it and put the following simple command in it:&lt;BR /&gt;/usr/bin/su - oracle -c "/usr/bin/ls -l /tmp &amp;gt; /tmp/ls.out" 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;WHICH also="" fails=""&gt;&lt;BR /&gt;&lt;BR /&gt;(Also tried different users!) &lt;BR /&gt;&lt;BR /&gt;The syntax error or bad number depends on the shell I defined the user in.&lt;BR /&gt;&lt;BR /&gt;Also this started to happen after the lastest June 2004 bundle for HP 11.11.&lt;BR /&gt;&lt;BR /&gt;The su is actually successfully, however something afterwards in the shell environment is blowing up.&lt;/WHICH&gt;</description>
      <pubDate>Wed, 27 Oct 2004 12:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409216#M202279</guid>
      <dc:creator>Kevin_258</dc:creator>
      <dc:date>2004-10-27T12:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409217#M202280</link>
      <description>What if if you try putting the same in Oracle startup script end...&lt;BR /&gt;&lt;BR /&gt;And as long as the script name is different S999 shall not matter..&lt;BR /&gt;&lt;BR /&gt;if oracle starup is &lt;BR /&gt;&lt;BR /&gt;S999oracle&lt;BR /&gt;&lt;BR /&gt;then new script can be&lt;BR /&gt;&lt;BR /&gt;S999pxxx...I believe it shall get through the problem..or just make the syntax part of some other script whihch executes in last..&lt;BR /&gt;&lt;BR /&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;Let me see if I can find anything more on this&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Wed, 27 Oct 2004 12:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409217#M202280</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-27T12:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409218#M202281</link>
      <description>One other thing is you shall try giving &lt;BR /&gt;&lt;BR /&gt;nohup &lt;BR /&gt;&lt;BR /&gt;in the beginning..try this&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Wed, 27 Oct 2004 12:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409218#M202281</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-27T12:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409219#M202282</link>
      <description>There is a tecnical knowledge base document describing something along these lines. I don't think I am alowed to post the url (?)...&lt;BR /&gt;&lt;BR /&gt;If you have access, search for "ksh bad number".&lt;BR /&gt;&lt;BR /&gt;But it says that PHCO_26783 or PHCO_27418 &lt;BR /&gt;cause "bad number" error in oracle environment setup script called from .profile. Offending command is "ulimit 4194304".  Should be changed to "ulimit unlimited".&lt;BR /&gt;&lt;BR /&gt; - John</description>
      <pubDate>Wed, 27 Oct 2004 12:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409219#M202282</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2004-10-27T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409220#M202283</link>
      <description>also &lt;BR /&gt;&lt;BR /&gt;su - userid -c '/path/to/script -options' &lt;BR /&gt;&lt;BR /&gt;this is one hint to resolve it. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Wed, 27 Oct 2004 12:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409220#M202283</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2004-10-27T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Number/Syntax Errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409221#M202284</link>
      <description>the following line has been added to my same oralce startupscript as well:&lt;BR /&gt;/usr/bin/su - oracle -c "/usr/bin/ls -l /tmp &amp;gt; /tmp/ls.out" 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;The command runs only up to the su, everything else doesn't run, put the /etc/profile in verbose mode and everything runs correctly.&lt;BR /&gt;&lt;BR /&gt;In response to above, the ksh bad number is a ulimit problem and the error would be "unlimited bad number".&lt;BR /&gt;&lt;BR /&gt;These same startup scripts run successfully if I execute them after the startup.&lt;BR /&gt;&lt;BR /&gt;Now these error messages seem to be related to the shell environment and not a .profile or /etc/profile problem.&lt;BR /&gt;&lt;BR /&gt;Just wondering if anyone ran into this problem before? Very weird.....</description>
      <pubDate>Wed, 27 Oct 2004 16:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-number-syntax-errors/m-p/3409221#M202284</guid>
      <dc:creator>Kevin_258</dc:creator>
      <dc:date>2004-10-27T16:16:55Z</dc:date>
    </item>
  </channel>
</rss>

