<?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: Command execution at system startup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172702#M458355</link>
    <description>Thanks</description>
    <pubDate>Thu, 30 Apr 2009 17:35:54 GMT</pubDate>
    <dc:creator>Din_1</dc:creator>
    <dc:date>2009-04-30T17:35:54Z</dc:date>
    <item>
      <title>Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172696#M458349</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I need to execute a command which starts a license deamon,as another user on startup of my HP UX system. How can i acheive this?&lt;BR /&gt;&lt;BR /&gt;#uname -a &lt;BR /&gt;HP-UX unix1 B.11.11 U 9000/800 3654209165 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance,&lt;BR /&gt;Din</description>
      <pubDate>Thu, 30 Apr 2009 14:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172696#M458349</guid>
      <dc:creator>Din_1</dc:creator>
      <dc:date>2009-04-30T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172697#M458350</link>
      <description>Hi Din:&lt;BR /&gt;&lt;BR /&gt;You can setup a statup 'rc' script.  The manpages for 'rc(1M') and/or this (still) applicable whitepaper provide all the details you need:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/934/startup.pdf" target="_blank"&gt;http://docs.hp.com/en/934/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can copy the '/sbin/init.d/template' file appropriately to form the basis for your script.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 30 Apr 2009 14:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172697#M458350</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-30T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172698#M458351</link>
      <description>Hi,&lt;BR /&gt;Create a traditional script with something like &lt;BR /&gt;PATH=...&lt;BR /&gt;SHLIB_PATH=...&lt;BR /&gt;export PATH SHLIB_PATH&lt;BR /&gt;start(){ &lt;BR /&gt;su user -c command_to_start_daemon &lt;BR /&gt;}&lt;BR /&gt;...&lt;BR /&gt;case "$1" in&lt;BR /&gt;start)&lt;BR /&gt;      start;;&lt;BR /&gt;stop) the function for stopping/kill&lt;BR /&gt;     ;;&lt;BR /&gt;*) echo $"Usage :$0 (start|stop)&lt;BR /&gt; exit 1&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;and  put it script on rc directory.&lt;BR /&gt;&lt;BR /&gt;Hope it helps</description>
      <pubDate>Thu, 30 Apr 2009 14:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172698#M458351</guid>
      <dc:creator>smatador</dc:creator>
      <dc:date>2009-04-30T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172699#M458352</link>
      <description>Hi Din,&lt;BR /&gt;&lt;BR /&gt;The easiest is to create a start/stop srcipt.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/template&lt;BR /&gt;Above is an example of a start/stop script, cp it your desired file name and customize the file.&lt;BR /&gt;&lt;BR /&gt;You can use the "su - username -c /path/to_your_command" to execute as a specific user.&lt;BR /&gt;&lt;BR /&gt;Create links to this script from the /etc/rc3.d where S is start and K is stop.&lt;BR /&gt;&lt;BR /&gt;rc3 scripts will start at multiuser boot.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 30 Apr 2009 14:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172699#M458352</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2009-04-30T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172700#M458353</link>
      <description>Also, you need to create a file under /etc/rc.config.d which set up the switch for the start up and shutdown the daemon.</description>
      <pubDate>Thu, 30 Apr 2009 16:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172700#M458353</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2009-04-30T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172701#M458354</link>
      <description>THanks all,&lt;BR /&gt;&lt;BR /&gt; I got an idea on this issue&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Din</description>
      <pubDate>Thu, 30 Apr 2009 17:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172701#M458354</guid>
      <dc:creator>Din_1</dc:creator>
      <dc:date>2009-04-30T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Command execution at system startup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172702#M458355</link>
      <description>Thanks</description>
      <pubDate>Thu, 30 Apr 2009 17:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-execution-at-system-startup/m-p/5172702#M458355</guid>
      <dc:creator>Din_1</dc:creator>
      <dc:date>2009-04-30T17:35:54Z</dc:date>
    </item>
  </channel>
</rss>

