<?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: Application start up when Machine starts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437431#M206754</link>
    <description>ovw is GUI application so you won't able to start it until you have X server running. If you are using CDE you can have it started automatically when you log in. Create $HOME/.dt/sessions/sessionetc file and make it executable. Place the following lines in sessionetc file.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;/opt/OV/bin/ovw -map &lt;MAP_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/MAP_NAME&gt;</description>
    <pubDate>Mon, 06 Dec 2004 17:51:11 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2004-12-06T17:51:11Z</dc:date>
    <item>
      <title>Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437425#M206748</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;i am running OpenView NNM on an HPUX 11.11 server, i need to do the following, i need everytime the servers starts or reboots some openview maps are started and opend&lt;BR /&gt;usually i do this from shell using &lt;BR /&gt;ovw -map mapname and some other parameters&lt;BR /&gt;can someone tell me in details where to change or add this file so as i can make these ovw sessions starts everytime the machine starts ???&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2004 11:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437425#M206748</guid>
      <dc:creator>Ahmed_41</dc:creator>
      <dc:date>2004-12-06T11:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437426#M206749</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;you can add an entry in /sbin/rc3.d for your ovw session to start when you start in normal mode.&lt;BR /&gt;&lt;BR /&gt;you have to add a file beginning by Sxxxovw.rc&lt;BR /&gt;&lt;BR /&gt;and you type your command to start your application, don't forget to add entire path for your command...&lt;BR /&gt;&lt;BR /&gt;Stf ;-)&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2004 11:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437426#M206749</guid>
      <dc:creator>Stf</dc:creator>
      <dc:date>2004-12-06T11:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437427#M206750</link>
      <description>Hi,&lt;BR /&gt;You will have to write a Startup/Shutdown script... Depending on how purist you are: HPUX separates script execution and script variable into 2 different locations...&lt;BR /&gt;&lt;BR /&gt;For the Startup/Shutdown script that you should put in /sbin/init.d there is a model called template at that location so you can copy it and customize to your needs&lt;BR /&gt;Then you just have to link to the init level you want your script to be executed at as S&lt;SEQUENCE number=""&gt;&amp;lt;scriptmane&amp;gt; and at the previous level in a K&lt;SEQUENCE number=""&gt;&amp;lt;scriptmane&amp;gt; for the Shutdown sequence&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/SEQUENCE&gt;&lt;/SEQUENCE&gt;</description>
      <pubDate>Mon, 06 Dec 2004 12:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437427#M206750</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-12-06T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437428#M206751</link>
      <description>Overview:&lt;BR /&gt;&lt;BR /&gt;All actual startup scripts are in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;To get a program to start up at boot time you set up a soft link in the run level directory desired.&lt;BR /&gt;&lt;BR /&gt;Lets say you want the program to start at run level 3.&lt;BR /&gt;&lt;BR /&gt;cd /sbin/rc3.d&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/startprogram S880ovmstart&lt;BR /&gt;&lt;BR /&gt;This says fire up startprogram in run level 3.&lt;BR /&gt;&lt;BR /&gt;It is equivalent to this command line:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/startprogram start&lt;BR /&gt;&lt;BR /&gt;Its usually a good idea to set up a kill to stop the program.&lt;BR /&gt;&lt;BR /&gt;cd /sbin/rc2.d&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/init.d/startprogram K120ovmstop&lt;BR /&gt;&lt;BR /&gt;You can write a fresh startup script in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;cd /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;cp template startupscript&lt;BR /&gt;&lt;BR /&gt;You can then put your command line in the way you want. Remember, start scripts don't have an environment. If you need a PATH you must set it.&lt;BR /&gt;&lt;BR /&gt;If you have the OpenView NNM program already auto starting, you may be able to add an additional command line and option to the startup script in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 06 Dec 2004 12:48:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437428#M206751</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-12-06T12:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437429#M206752</link>
      <description>Hi Ahmed,&lt;BR /&gt;&lt;BR /&gt;Maybe this doc will help you understand the concept and write a small script for the startup/shitdown of the app.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/startup.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/startup.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2004 13:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437429#M206752</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-12-06T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437430#M206753</link>
      <description>I've attached a more modern template file. You'll find the old version in /sbin/init.d/template. Read the comments in the template file, make a copy and modify it to fit your needs. There is also a parameter file in /etc/rc.config.d where you can put values to sent to the start/stop script.&lt;BR /&gt; &lt;BR /&gt;NOTE: start/stop scripts are executed before logins or other network tasks are completed so if ovw is the interactive program, it will fail because there is no place to display the program yet. If you want ovw to come up as you login, just add the code to your local .profile.</description>
      <pubDate>Mon, 06 Dec 2004 15:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437430#M206753</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-12-06T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437431#M206754</link>
      <description>ovw is GUI application so you won't able to start it until you have X server running. If you are using CDE you can have it started automatically when you log in. Create $HOME/.dt/sessions/sessionetc file and make it executable. Place the following lines in sessionetc file.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;/opt/OV/bin/ovw -map &lt;MAP_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/MAP_NAME&gt;</description>
      <pubDate>Mon, 06 Dec 2004 17:51:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437431#M206754</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-12-06T17:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437432#M206755</link>
      <description>Guys, &lt;BR /&gt;that was a very good answers actually, now i know about startup and shutdown scripts. this is very good&lt;BR /&gt;&lt;BR /&gt;let me get back to one point here please, ovw will try to open a gui, so as stated last it needs x server to be running.&lt;BR /&gt;&lt;BR /&gt;isnt xserver will be running since the machine is starting up ??? xserver will start automatically i think?? right ?&lt;BR /&gt;&lt;BR /&gt;so i just need to put my script to run after the xserver script runs so as i am sure that xserver is running , am i correct about this ??? or xserver only runs when some user logins over cde ???&lt;BR /&gt;&lt;BR /&gt;please i need to know this more in details as you did guys with the startup/shutdown scripts.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2004 18:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437432#M206755</guid>
      <dc:creator>Ahmed_41</dc:creator>
      <dc:date>2004-12-06T18:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437433#M206756</link>
      <description>Before you run ovw you must have shell environment variable called DISPLAY defined. &lt;BR /&gt;&lt;BR /&gt;$ echo $DISPLAY&lt;BR /&gt;&lt;HOSTNAME&gt;:0.0&lt;BR /&gt;&lt;BR /&gt;This variable shows where X server is (at hostname). When you run ovw GUI, it will try to display its window at &lt;HOSTNAME&gt;:0.0.&lt;BR /&gt;&lt;BR /&gt;For example if you are connecting to your NNM server from a PC running MS Windows, your PC must be running some flavour of X server emulation software (e.g. ReflectionX).&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Mon, 06 Dec 2004 18:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437433#M206756</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-12-06T18:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Application start up when Machine starts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437434#M206757</link>
      <description>Sorry, I forgot the attachment. As far as a graphics program starting up, there is a rather large difference between the Xwindow code that provides a desktop and your display. Your display is unavailable until you actually login. That's because the workstation display must be enabled to act as a display server. Herein lies some confusion about servers and clients when it comes to Xwindows. Your display, whether attached to a workstation or emulated with special PC software, must be enabled to be a display server. The Xserver software is actually a client program and does not display anything until requested. Whether a PC or local workstation, the desktop manager (CDE) will not show anything until the display is ready to accept Xwindow traffic.&lt;BR /&gt; &lt;BR /&gt;Now you *can* start the ovw program and give it the address of an already-running display server (another workstation or perhaps a PC already running an Xwindow emulator) by including the -display option as in:&lt;BR /&gt; &lt;BR /&gt;ovw -display 12.34.56.78:0 -map mapname ...&lt;BR /&gt; &lt;BR /&gt;Now this IPaddress can't be the local workstation because it isn't a display server yet. I used to run several Glance sessions and an ovw display on an Xwindow terminal. The Xwindow terminal is always running and can be configured to accept displays from any source.&lt;BR /&gt; &lt;BR /&gt;So for your solution, create a permenent Xwindow server somewhere and display ovw there, or add ovw to your login profile on the local system.</description>
      <pubDate>Mon, 06 Dec 2004 19:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/application-start-up-when-machine-starts/m-p/3437434#M206757</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-12-06T19:41:56Z</dc:date>
    </item>
  </channel>
</rss>

