<?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: dot(.)profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504323#M846418</link>
    <description>thanks for the quick answer. this is what i did. But I do not get the command line. Usually after it run the .profile, i should get to command line, but it is hanging. wonder why....&lt;BR /&gt;&lt;BR /&gt;newgrp mygroup&amp;lt;&amp;lt;_EOF&lt;BR /&gt;if my_c_program&lt;BR /&gt;  start_application&lt;BR /&gt;else&lt;BR /&gt;  echo "Error"&lt;BR /&gt;fi&lt;BR /&gt;_EOF</description>
    <pubDate>Mon, 14 Mar 2005 16:17:00 GMT</pubDate>
    <dc:creator>yonjon</dc:creator>
    <dc:date>2005-03-14T16:17:00Z</dc:date>
    <item>
      <title>dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504321#M846416</link>
      <description>I am trying to change my group id within .profile and execute an application as new group id. &lt;BR /&gt;&lt;BR /&gt;newgrp does not work. &lt;BR /&gt;&lt;BR /&gt;once i do newgrp within the .profile, i can not execute anything after that line. &lt;BR /&gt;&lt;BR /&gt;Thanks. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 16:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504321#M846416</guid>
      <dc:creator>yonjon</dc:creator>
      <dc:date>2005-03-14T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504322#M846417</link>
      <description>In your script, try&lt;BR /&gt; &lt;BR /&gt;newgrp yourgroup &amp;lt;-EOF&lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;EOF&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 14 Mar 2005 16:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504322#M846417</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-03-14T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504323#M846418</link>
      <description>thanks for the quick answer. this is what i did. But I do not get the command line. Usually after it run the .profile, i should get to command line, but it is hanging. wonder why....&lt;BR /&gt;&lt;BR /&gt;newgrp mygroup&amp;lt;&amp;lt;_EOF&lt;BR /&gt;if my_c_program&lt;BR /&gt;  start_application&lt;BR /&gt;else&lt;BR /&gt;  echo "Error"&lt;BR /&gt;fi&lt;BR /&gt;_EOF</description>
      <pubDate>Mon, 14 Mar 2005 16:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504323#M846418</guid>
      <dc:creator>yonjon</dc:creator>
      <dc:date>2005-03-14T16:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504324#M846419</link>
      <description>newgrp is almost useless. It will never work in a script because it always replace the current shell with a new shell.  Rather than use this useless command, just add your name to the /etc/group file then check your membership with the command: id&lt;BR /&gt; &lt;BR /&gt;You'll now be a member of multiple groups. (this assumes you are using supported versions of HP-UX. If not (ie, 10.20 or earlier) then you'll have to create a symlink: ln /etc/group /etc/logingroup)</description>
      <pubDate>Mon, 14 Mar 2005 19:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504324#M846419</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-14T19:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504325#M846420</link>
      <description>i am not sure what u r suggesting here. could you please elaborate more or give me and example.</description>
      <pubDate>Tue, 15 Mar 2005 10:52:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504325#M846420</guid>
      <dc:creator>yonjon</dc:creator>
      <dc:date>2005-03-15T10:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: dot(.)profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504326#M846421</link>
      <description>In the /etc/group file add another line:&lt;BR /&gt;&lt;BR /&gt;myothergroup:username&lt;BR /&gt;&lt;BR /&gt;Now you are a member of that group and can execute commands with that group permission.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Mar 2005 12:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-profile/m-p/3504326#M846421</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-03-15T12:59:56Z</dc:date>
    </item>
  </channel>
</rss>

