<?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: .profile POSIX shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697138#M57033</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;this is the prompt i use.  in the .profile file:&lt;BR /&gt;**&lt;BR /&gt;PWD=`pwd`&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;PS1='$HOST@$PWD&amp;gt;'&lt;BR /&gt;export PWD HOST PS1&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;HTh&lt;BR /&gt;raj</description>
    <pubDate>Thu, 04 Apr 2002 15:21:48 GMT</pubDate>
    <dc:creator>Roger Baptiste</dc:creator>
    <dc:date>2002-04-04T15:21:48Z</dc:date>
    <item>
      <title>.profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697128#M57023</link>
      <description>I am trying to get the hostname to appear at the prompt. &lt;BR /&gt;&lt;BR /&gt;In .profile &lt;BR /&gt;export PS1='$LOGNAME@$hostname: $PWD $'&lt;BR /&gt;&lt;BR /&gt;All I get is a blank space. Is the hostname not loaded at startup?&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 14:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697128#M57023</guid>
      <dc:creator>Jason Heisley</dc:creator>
      <dc:date>2002-04-04T14:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697129#M57024</link>
      <description>it's either &lt;BR /&gt;&lt;BR /&gt;export PS1='$LOGNAME@`hostname`: $PWD $'&lt;BR /&gt;&lt;BR /&gt;which uses the command 'hostname' in backticks, or&lt;BR /&gt;&lt;BR /&gt;export PS1='$LOGNAME@$HOST: $PWD $'&lt;BR /&gt;&lt;BR /&gt;using the environment variable $HOST, which is not always set, so I'd go for the backtick way</description>
      <pubDate>Thu, 04 Apr 2002 15:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697129#M57024</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-04-04T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697130#M57025</link>
      <description>I use command execution....&lt;BR /&gt;&lt;BR /&gt;PS1='('`hostname`' $LOGNAME) $PWD $ '&lt;BR /&gt;&lt;BR /&gt;Try that.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;James</description>
      <pubDate>Thu, 04 Apr 2002 15:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697130#M57025</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2002-04-04T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697131#M57026</link>
      <description>Here's one:&lt;BR /&gt;&lt;BR /&gt;PS1=`uname -n`:`id -un`:'${PWD}''# '\</description>
      <pubDate>Thu, 04 Apr 2002 15:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697131#M57026</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2002-04-04T15:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697132#M57027</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you just want the hostname at the prompt, add this to the .profile:&lt;BR /&gt;&lt;BR /&gt;PS1="`hostname`# "&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 04 Apr 2002 15:06:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697132#M57027</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-04T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697133#M57028</link>
      <description>Your $hostname (or $HOSTNAME) is not set in your .profile while entering your shell.&lt;BR /&gt;&lt;BR /&gt;You can also do a:&lt;BR /&gt;export PS1="$LOGNAME@`hostname`:$PWD $"&lt;BR /&gt;(using dubble-quotes and back-quotes); this works just fine too.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan</description>
      <pubDate>Thu, 04 Apr 2002 15:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697133#M57028</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-04-04T15:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697134#M57029</link>
      <description>Replace export PS1='$LOGNAME@$hostname: $PWD $'&lt;BR /&gt;&lt;BR /&gt;with&lt;BR /&gt;export PS1=$LOGNAME@`hostname`':$PWD: '&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 15:07:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697134#M57029</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-04T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697135#M57030</link>
      <description>Hi Jason:&lt;BR /&gt;&lt;BR /&gt;# export PS1="$LOGNAME@$(hostname): $PWD $"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Apr 2002 15:09:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697135#M57030</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-04-04T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697136#M57031</link>
      <description>Looks like an easy one: 7 answers in one minute!&lt;BR /&gt;&lt;BR /&gt;I beat you, being the first :)))&lt;BR /&gt;&lt;BR /&gt;N/A</description>
      <pubDate>Thu, 04 Apr 2002 15:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697136#M57031</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-04-04T15:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697137#M57032</link>
      <description>I used James Beamish-White &lt;BR /&gt;post it works great. &lt;BR /&gt;procura post only returns hostname not the actual host name. Sorry&lt;BR /&gt;&lt;BR /&gt;As for the others I have not tried them.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Apr 2002 15:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697137#M57032</guid>
      <dc:creator>Jason Heisley</dc:creator>
      <dc:date>2002-04-04T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697138#M57033</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;this is the prompt i use.  in the .profile file:&lt;BR /&gt;**&lt;BR /&gt;PWD=`pwd`&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;PS1='$HOST@$PWD&amp;gt;'&lt;BR /&gt;export PWD HOST PS1&lt;BR /&gt;**&lt;BR /&gt;&lt;BR /&gt;HTh&lt;BR /&gt;raj</description>
      <pubDate>Thu, 04 Apr 2002 15:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697138#M57033</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-04-04T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697139#M57034</link>
      <description>That's because it's between single quotes :( and single quotes do not interpolate backticks&lt;BR /&gt;&lt;BR /&gt;export PS1='$LOGNAME@'`hostname`': $PWD $'&lt;BR /&gt;&lt;BR /&gt;should be it&lt;BR /&gt;&lt;BR /&gt;I should have known it would be toooo easy :0&lt;BR /&gt;&lt;BR /&gt;The comments however still hold</description>
      <pubDate>Thu, 04 Apr 2002 15:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697139#M57034</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-04-04T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: .profile POSIX shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697140#M57035</link>
      <description>Hi Jason,&lt;BR /&gt;&lt;BR /&gt;and another combination:&lt;BR /&gt;export PS1="$LOGNAME@`hostname`:\$PWD\$ "&lt;BR /&gt;&lt;BR /&gt;RGDS, Holger</description>
      <pubDate>Thu, 04 Apr 2002 15:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-posix-shell/m-p/2697140#M57035</guid>
      <dc:creator>Holger Knoppik</dc:creator>
      <dc:date>2002-04-04T15:36:11Z</dc:date>
    </item>
  </channel>
</rss>

