Operating System - HP-UX
1748145 Members
3329 Online
108758 Solutions
New Discussion юеВ

Re: Huge points for a working script.

 
SOLVED
Go to solution
Steven E. Protter
Exalted Contributor

Huge points for a working script.

5 points for failures.

I need reports60_server that works during HP-UX runlevel init, as in boot time.

What is this?

the startup script for Oracle Internet Application Server's report server piece.

I know it needs X virtual frame buffer(xvfb) thats working.

My forms60_server script works only after system start, fails with no error message, no nothing on reboot. Attached it a copy of the script as modified to do some environment dumps.

Also attached are the environment and stty -a output for the user that owns the application, and my forms60_server script.

I may have to do multiple posts to push all this up.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
16 REPLIES 16
Steven E. Protter
Exalted Contributor

Re: Huge points for a working script.

here is the user environment for the user that owns the ap. It also includes ssty -a output

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Huge points for a working script.

here is the environment dump I added to the top of the forms60_server script.

A real olympian, might be able to diff the files and figure out if the differences mean anything. I'm HP certified, but not that good yet.

That's hp certfied nut case btw.

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
harry d brown jr
Honored Contributor

Re: Huge points for a working script.

What rc do you have this startup script linked in? And what is the SEQuence number??

live free or die
harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: Huge points for a working script.

Hi Steven,

Try putting set -x in the beginning and see what it would generate.

-Sri

PS: You don't need to give me points though.
You may be disappointed if you fail, but you are doomed if you don't try
Yogeeraj_1
Honored Contributor

Re: Huge points for a working script.

hi steven,

Am a bit confused! Do you have a problem with your forms60_server script or the reports60_server ?

Works fine for me.

[a few details in the attached file]

Let me know. Maybe i can help.

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steven E. Protter
Exalted Contributor

Re: Huge points for a working script.

Answers to all questions I understand, reverse order.

Its the reports60_server script that I need help with.





Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Huge points for a working script.

In /sbin/rc3.d

S950apache starts the httpd server sucessfully
S960forms starts the forms server successfully
S970reports starts the reports server, which seems to terminate shortly after startup. Logs indicates that it has however started.

Concerning the -x issue, where would I put that option????

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tom Maloy
Respected Contributor

Re: Huge points for a working script.

set -x

Just put it as the first executable line in the script.

Tom
Carpe diem!
Sridhar Bhaskarla
Honored Contributor

Re: Huge points for a working script.

Steven,

Here is what I was talking about.

#!/bin/sh
## Startup script for Forms Server
## Refer to Install Doc for more detail on #each of these environment variables
set -x #<< here it goes
DISPLAY=10.1.11.60:10.0
export DISPLAY
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN

Once you figured out the problem, you can take it out.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try