<?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: Switching id in script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030923#M761111</link>
    <description>Thanks for the feedback. I have decided not to pursue this solution. We might be using sudo instead.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Tue, 27 Feb 2007 16:16:24 GMT</pubDate>
    <dc:creator>Ridzuan Zakaria</dc:creator>
    <dc:date>2007-02-27T16:16:24Z</dc:date>
    <item>
      <title>Switching id in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030921#M761109</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have written the following code to allow an  id which in dba group to switch to oracle id while running "checklsnr.sh" script.&lt;BR /&gt;&lt;BR /&gt;The below command worked fine on Sun and Linux (Red Hat) but it doesn't seems to be working on HP-UX:&lt;BR /&gt;&lt;BR /&gt;#############################################&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;set -x&lt;BR /&gt;echo "Test Begin"&lt;BR /&gt;(echo touch /oracle/dba/checklsnr.sh ) | sw oracle&lt;BR /&gt;&lt;BR /&gt;#############################################&lt;BR /&gt;&lt;BR /&gt;Oracle id is a NoLogin id. We switch to oracle id using "sw" utility.&lt;BR /&gt;&lt;BR /&gt;Here is the output when ran on HP-UX. It immediately close the connection with running the script.&lt;BR /&gt;&lt;BR /&gt;########################################&lt;BR /&gt;+ echo Test Begin&lt;BR /&gt;Test Begin&lt;BR /&gt;+ echo touch /oracle/dba/checklsnr.sh&lt;BR /&gt;+ sw oracle&lt;BR /&gt;Switching to oracle&lt;BR /&gt;Closed connection.&lt;BR /&gt;##########################################&lt;BR /&gt;&lt;BR /&gt;Any ideas why the script not able to switch to Oracle id on HP-UX?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030921#M761109</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2007-02-27T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Switching id in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030922#M761110</link>
      <description>Well, sw is not a standard command. You need to examine sw (if it is a script) and trobleshoot from there.</description>
      <pubDate>Tue, 27 Feb 2007 14:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030922#M761110</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-27T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Switching id in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030923#M761111</link>
      <description>Thanks for the feedback. I have decided not to pursue this solution. We might be using sudo instead.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 27 Feb 2007 16:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-id-in-script/m-p/5030923#M761111</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2007-02-27T16:16:24Z</dc:date>
    </item>
  </channel>
</rss>

