HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- why this code core dumps?
Operating System - HP-UX
1837965
Members
2512
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2008 06:34 AM
03-12-2008 06:34 AM
why this code core dumps?
Hi,
#############################################
if [ -r /opt/HPOV_IPA/bin/ovta_wls.sh ]; then
. "/opt/HPOV_IPA/bin/ovta_wls.sh"
CLASSPATH="${CLASSPATH}:${OVTA_JAR}"
JAVA_OPTIONS="$JAVA_OPTIONS $OVTA_JAVA_OPTIONS"
echo $CLASSPATH
else
echo "Sorry, /opt/HPOV_IPA/bin/ovta_wls.sh is not readable, please investigate, bye ..."
exit 1
fi
#############################################
can you tell me why this code core dumps and how to avoid?
Thanks.
#############################################
if [ -r /opt/HPOV_IPA/bin/ovta_wls.sh ]; then
. "/opt/HPOV_IPA/bin/ovta_wls.sh"
CLASSPATH="${CLASSPATH}:${OVTA_JAR}"
JAVA_OPTIONS="$JAVA_OPTIONS $OVTA_JAVA_OPTIONS"
echo $CLASSPATH
else
echo "Sorry, /opt/HPOV_IPA/bin/ovta_wls.sh is not readable, please investigate, bye ..."
exit 1
fi
#############################################
can you tell me why this code core dumps and how to avoid?
Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2008 07:24 AM
03-12-2008 07:24 AM
Re: why this code core dumps?
Hi,
first tipp - comment out some lines and check if the remaining lines work.
I think here you also need a ':'
JAVA_OPTIONS="$JAVA_OPTIONS:$OVTA_JAVA_OPTIONS"
and maybe also the brackets '{' and '}' ?
HTH
Volkmar
P.S.
Which shell is it?
first tipp - comment out some lines and check if the remaining lines work.
I think here you also need a ':'
JAVA_OPTIONS="$JAVA_OPTIONS:$OVTA_JAVA_OPTIONS"
and maybe also the brackets '{' and '}' ?
HTH
Volkmar
P.S.
Which shell is it?
*** Say 'Thanks' with Kudos ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2008 02:11 PM
03-12-2008 02:11 PM
Re: why this code core dumps?
thanks...i will try that and reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2008 05:21 PM
03-12-2008 05:21 PM
Re: why this code core dumps?
I don't think it is the code shown which causes a core dump, but rather sonething it
runs: /opt/HPOV_IPA/bin/ovta_wls.sh
And in turn that probably does not cause a dump, because shell scripts do not tempt to cause dump. It is probably a program it calls.
Try debug with print statements or use a first line:
set -x
Free advice, if you are going to use a piece of string more than once, then please put it in a variable. Otherwise it is way to easy to create spelling/maintenance errors.
IN the example the string "/opt/HPOV_IPA/bin/ovta_wls.sh" is used 3 times.
Stick it into a variable. Once.
For example:
$ovta_wls_script="/opt/HPOV_IPA/bin/ovta_wls.sh"
Good luck,
Hein.
runs: /opt/HPOV_IPA/bin/ovta_wls.sh
And in turn that probably does not cause a dump, because shell scripts do not tempt to cause dump. It is probably a program it calls.
Try debug with print statements or use a first line:
set -x
Free advice, if you are going to use a piece of string more than once, then please put it in a variable. Otherwise it is way to easy to create spelling/maintenance errors.
IN the example the string "/opt/HPOV_IPA/bin/ovta_wls.sh" is used 3 times.
Stick it into a variable. Once.
For example:
$ovta_wls_script="/opt/HPOV_IPA/bin/ovta_wls.sh"
Good luck,
Hein.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP