<?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: validate a user in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516372#M844515</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;user=`whoami`&lt;BR /&gt;if [ "$user" = "bsp150" ]&lt;BR /&gt;then&lt;BR /&gt;   user="blanchap"&lt;BR /&gt;fi</description>
    <pubDate>Fri, 01 Apr 2005 11:56:08 GMT</pubDate>
    <dc:creator>Slawomir Gora</dc:creator>
    <dc:date>2005-04-01T11:56:08Z</dc:date>
    <item>
      <title>validate a user in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516371#M844514</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what is wrong with this picture?&lt;BR /&gt;&lt;BR /&gt;user=`whoami`&lt;BR /&gt;if $user = "bsp150"&lt;BR /&gt;then&lt;BR /&gt;user="blanchap"&lt;BR /&gt;else&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;All i want to do is change the variable user to blanchap if user that is running the script is bsp150.&lt;BR /&gt;&lt;BR /&gt;i'm missing something.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;PB</description>
      <pubDate>Fri, 01 Apr 2005 11:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516371#M844514</guid>
      <dc:creator>Patrice Blanchard_2</dc:creator>
      <dc:date>2005-04-01T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: validate a user in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516372#M844515</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;user=`whoami`&lt;BR /&gt;if [ "$user" = "bsp150" ]&lt;BR /&gt;then&lt;BR /&gt;   user="blanchap"&lt;BR /&gt;fi</description>
      <pubDate>Fri, 01 Apr 2005 11:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516372#M844515</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2005-04-01T11:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: validate a user in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516373#M844516</link>
      <description>Patrice,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;user=`whoami`&lt;BR /&gt;echo $user&lt;BR /&gt;if [ $user = "bsp150" ]&lt;BR /&gt;then&lt;BR /&gt;user="blanchap"&lt;BR /&gt;fi&lt;BR /&gt;echo $user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 01 Apr 2005 11:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516373#M844516</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-04-01T11:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: validate a user in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516374#M844517</link>
      <description>How about:&lt;BR /&gt;&lt;BR /&gt;usr=$(whoami | sed 's/^bsp150$//')&lt;BR /&gt;echo ${usr:="blanchap"}&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2005 14:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/validate-a-user-in-a-script/m-p/3516374#M844517</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-01T14:55:31Z</dc:date>
    </item>
  </channel>
</rss>

