<?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: ${HOME:-.}/.profile[22]: test: argument expected in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261757#M472202</link>
    <description>is this diplaying on the console ?&lt;BR /&gt;in the syslog.log ?&lt;BR /&gt;&lt;BR /&gt;even before you log in ?&lt;BR /&gt;after you log in ?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Nov 2010 20:37:37 GMT</pubDate>
    <dc:creator>Tim Nelson</dc:creator>
    <dc:date>2010-11-05T20:37:37Z</dc:date>
    <item>
      <title>${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261753#M472198</link>
      <description>We had to reboot one of our hp-ux 11i v1 servers (n4000 model). Everything gets mounted, file system sanity check is OK, afterwards, peculiarly, these errors appear infinitely (hundreds of lines and counting)...&lt;BR /&gt;&lt;BR /&gt;${HOME:-.}/.profile[22]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[41]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[44]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[47]: Q: unknown test operator&lt;BR /&gt;${HOME:-.}/.profile[22]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[25]: test: argument expected&lt;BR /&gt;&lt;BR /&gt;it never starts any services and coming to the (console) login prompt.&lt;BR /&gt;&lt;BR /&gt;I logged in Single-user mode, renamed .profile, copied from /usr/newconfig/etc/profile to $HOME, added only 2 lines, tried everything related to the .profile file, hard-booted by 'resetting', but it still reads the same .profile from somewhere and gives the error on the same exact lines - 22, 25, 29, 32, 35, 38, 41, 44, 47. I don't know where it is even reading it from.&lt;BR /&gt;&lt;BR /&gt;anyone has any ideas?!&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Ravi.</description>
      <pubDate>Fri, 05 Nov 2010 20:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261753#M472198</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-05T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261754#M472199</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Posting the errant '.profile' would help, especially since you "added only 2 lines".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Nov 2010 20:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261754#M472199</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-11-05T20:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261755#M472200</link>
      <description>No, I didn't add just 2 lines - I was just saying that I tried various ways - including adding just 2 lines. that didn't help either.&lt;BR /&gt;&lt;BR /&gt;the current .profile that is located under $HOME (copied from /usr/newconfig/etc/profile) will be attached.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Ravi.</description>
      <pubDate>Fri, 05 Nov 2010 20:31:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261755#M472200</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-05T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261756#M472201</link>
      <description>attachment.</description>
      <pubDate>Fri, 05 Nov 2010 20:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261756#M472201</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-05T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261757#M472202</link>
      <description>is this diplaying on the console ?&lt;BR /&gt;in the syslog.log ?&lt;BR /&gt;&lt;BR /&gt;even before you log in ?&lt;BR /&gt;after you log in ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2010 20:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261757#M472202</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2010-11-05T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261758#M472203</link>
      <description>I logged into the console. On the screen itself. I couldn't even login because the above messages appear infinitely!&lt;BR /&gt;&lt;BR /&gt;ps: I do have a case open with hp support - but so far, he is clueless!</description>
      <pubDate>Fri, 05 Nov 2010 20:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261758#M472203</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-05T20:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261759#M472204</link>
      <description>My first thought is a bad inittab entry trying to start a service on boot.&lt;BR /&gt;&lt;BR /&gt;check out any entries in there that look to be running some errant script that possible may "su" to some user, that users .profile is probably the one with the issue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2010 20:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261759#M472204</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2010-11-05T20:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261760#M472205</link>
      <description>&amp;gt;the current .profile that is located under $HOME (copied from /usr/newconfig/etc/profile) will be attached.&lt;BR /&gt;&lt;BR /&gt;.profile and /etc/profile are different.  Did you attach the proper file?&lt;BR /&gt;&lt;BR /&gt;Typically that error occurs due to sloppy programming and variables not being set, or containing whitespace or "-".</description>
      <pubDate>Fri, 05 Nov 2010 20:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261760#M472205</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-05T20:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261761#M472206</link>
      <description>the analyst asked me to copy /usr/newconfig/etc/profile file to $HOME/.profile. I was hesitant about doing this.&lt;BR /&gt;&lt;BR /&gt;anyways, i made a copy of the original .profile (renamed it as /tmp/.profile.orig), which is attached.&lt;BR /&gt;&lt;BR /&gt;btw, since I have no network to that server (as I am in single-user mode), I am copying and pasting the contents of the file(s) into notepad and attaching here.&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;Ravi.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2010 20:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261761#M472206</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-05T20:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261762#M472207</link>
      <description>&amp;gt;the analyst asked me to copy /usr/newconfig/etc/profile file&lt;BR /&gt;&lt;BR /&gt;There are at least three "profile" files in /usr/newconfig.  That one is for /etc/profile. There is one for root .profile and another for other users.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I made a copy of the original .profile, which is attached.&lt;BR /&gt;&lt;BR /&gt;Nothing obvious here.  If you keep adding "set -x" to every .profile, you'll eventually find the one that is printing the error.  :-)&lt;BR /&gt;&lt;BR /&gt;It would be helpful to at least point out which lines are 22, 25 etc, to see if there is any pattern.  They should have "[...]".</description>
      <pubDate>Fri, 05 Nov 2010 21:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261762#M472207</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-05T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261763#M472208</link>
      <description>&amp;gt;&amp;gt; it never starts any services &lt;BR /&gt; &lt;BR /&gt;Do you mean that the startup scripts do not run? What does /etc/rc.log show? Did you recently cd to the /etc/rc.config.d directory and edit some files? Check like this:&lt;BR /&gt; &lt;BR /&gt;ls -lart /etc/rc.config.d | tail&lt;BR /&gt; &lt;BR /&gt;There can never be any junk files in this directory or your system may be unable to boot into a normal mode.</description>
      <pubDate>Sat, 06 Nov 2010 00:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261763#M472208</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-11-06T00:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261764#M472209</link>
      <description>Since the last reboot (21-Apr-2010), I saw a file pointer under /sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;lrwxrwxr-x   1 root       sys             23 May 14 08:05 K98gcstartup -&amp;gt; /sbin//init.d/gcstartup&lt;BR /&gt;lrwxrwxr-x   1 root       sys             23 May 14 08:05 S98gcstartup -&amp;gt; /sbin//init.d/gcstartup&lt;BR /&gt;&lt;BR /&gt;I went to /sbin/init.d; moved the file gcstartup to /tmp directory.&lt;BR /&gt;&lt;BR /&gt;gcstartup is associated with Oracleâ  s crs/gc setup, created by Oracle, not by me.&lt;BR /&gt;&lt;BR /&gt;Rebooted the server â   everything seems to be fine. &lt;BR /&gt;Iâ  m still thinking whether I should give it a try by moving gcstartup file in /sbin/init.d directory â   and see if it fails again to reboot.&lt;BR /&gt;&lt;BR /&gt;Our ignite backups are run/overwritten once a day â   so, the backups would have been overwritten onto the DDS tape â   because when the server was up and running, nothing seemed wrong.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Ravi.</description>
      <pubDate>Sat, 06 Nov 2010 03:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261764#M472209</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-06T03:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261765#M472210</link>
      <description>What happens now if you run the 'gcstartup' script manually?</description>
      <pubDate>Sat, 06 Nov 2010 03:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261765#M472210</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-06T03:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261766#M472211</link>
      <description>&lt;WHAT happens="" now="" if="" you="" run="" the=""&gt;&lt;BR /&gt;&lt;BR /&gt;  good point!&lt;BR /&gt;&lt;BR /&gt;gcstartup contains the line at the end (not modified by me) to startup Oracle Agent 10g:&lt;BR /&gt;&lt;BR /&gt;if [ -f  /apps/tstc/oracle/agent10g/install/unix/scripts/agentstup ]; then&lt;BR /&gt;    /bin/su - oracle -c "/apps/tstc/oracle/agent10g/install/unix/scripts/agentstup $1"&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;gcstartup, when run, prompts me to choose the database instance - because we have multiple database instances for the UNIX user 'oracle'; it validates which option we choose - if we don't choose any option or press enter, it would say:&lt;BR /&gt;&lt;BR /&gt;${HOME:-.}/.profile[22]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[25]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[29]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[32]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[35]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[38]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[41]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[44]: test: argument expected&lt;BR /&gt;${HOME:-.}/.profile[47]: Q: unknown test operator&lt;BR /&gt;&lt;BR /&gt;well, that explains it!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Ravi.&lt;/WHAT&gt;</description>
      <pubDate>Sat, 06 Nov 2010 03:41:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261766#M472211</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-06T03:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261767#M472212</link>
      <description>i will assign the points and close this thread.</description>
      <pubDate>Sat, 06 Nov 2010 03:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261767#M472212</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-06T03:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261768#M472213</link>
      <description>Points assigned!</description>
      <pubDate>Sat, 06 Nov 2010 03:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261768#M472213</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2010-11-06T03:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: ${HOME:-.}/.profile[22]: test: argument expected</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261769#M472214</link>
      <description>&amp;gt;I went to /sbin/init.d; moved the file gcstartup to /tmp directory.&lt;BR /&gt;&lt;BR /&gt;In general, what's in there is ignored and it is just a place to hold all of the rc scripts.  It is the presence of the symlinks in /sbin/rc?.d/ that do the actual work.</description>
      <pubDate>Sat, 06 Nov 2010 04:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/home-profile-22-test-argument-expected/m-p/5261769#M472214</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-06T04:22:27Z</dc:date>
    </item>
  </channel>
</rss>

