<?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: su - user in script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625269#M39708</link>
    <description>Kevin,&lt;BR /&gt;See what happens to that specific user. Are you prompted for the TERM type then? If so you could probably enter that info in the ocsagent .profile and that should take care of you prob.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;C</description>
    <pubDate>Tue, 04 Dec 2001 21:01:25 GMT</pubDate>
    <dc:creator>Craig Rants</dc:creator>
    <dc:date>2001-12-04T21:01:25Z</dc:date>
    <item>
      <title>su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625268#M39707</link>
      <description>I am creating a startup script to start a particular application. This app needs to be started by it's owner. When I run this script, it prompts me for the TERM type, as soon as I hit return, it executes correctly. But how can I get it to work without it prompting me for the Term type as this will need to run at bootup??&lt;BR /&gt;&lt;BR /&gt;the relevant part of the script..&lt;BR /&gt;case $1 in&lt;BR /&gt;        start) &lt;BR /&gt;        if [[ -f /etc/rc.config.d/tidal ]];then&lt;BR /&gt;        . /etc/rc.config.d/tidal&lt;BR /&gt;        else  &lt;BR /&gt;echo "Defaults file /etc/rc.config.d/tidal missing"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        if [[ $TD = 1 ]];then&lt;BR /&gt;        echo "starting tidal server"&lt;BR /&gt;su - $USER -c "/opt/ocsagent/bin/express start"&lt;BR /&gt;        fi;;&lt;BR /&gt;&lt;BR /&gt;Here is the users .profile&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;export TERM=hp&lt;BR /&gt;export OCS=/opt/ocsagent&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2001 20:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625268#M39707</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-12-04T20:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625269#M39708</link>
      <description>Kevin,&lt;BR /&gt;See what happens to that specific user. Are you prompted for the TERM type then? If so you could probably enter that info in the ocsagent .profile and that should take care of you prob.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;C</description>
      <pubDate>Tue, 04 Dec 2001 21:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625269#M39708</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-04T21:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625270#M39709</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;If you manually run the script and it prompts you for TERM type don't worry. If you run the same using the rc script at boottime. it will not prompt you for the TERM type.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2001 21:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625270#M39709</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-04T21:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625271#M39710</link>
      <description>Didn't see the bottom part, so what if you change the term to something generic like xterm, vt100, or dtterm.  What then.</description>
      <pubDate>Tue, 04 Dec 2001 21:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625271#M39710</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-04T21:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625272#M39711</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt; It should work fine in the current format without prompting. I used to have tidal express scheduler in an earlier site and remember running it in the same way .&lt;BR /&gt;&lt;BR /&gt;(hope ocs is more stable now!&lt;BR /&gt;if so,  some credit for me for reporting  endless list of problems ;-) ).&lt;BR /&gt;&lt;BR /&gt;-Raj</description>
      <pubDate>Tue, 04 Dec 2001 21:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625272#M39711</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-12-04T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: su - user in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625273#M39712</link>
      <description>Ok then, I wasn't sure if it would prompt for the TERM type when the system boots. &lt;BR /&gt;&lt;BR /&gt;Don't know if ocs is more stable or not yet, I just installed it as a client yesterday, but that doesn't sound good.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Tue, 04 Dec 2001 21:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-in-script/m-p/2625273#M39712</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-12-04T21:13:34Z</dc:date>
    </item>
  </channel>
</rss>

