HPE GreenLake Administration
Operating System - HP-UX
1833747
Members
2880
Online
110063
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
Go to solution
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
08-16-2000 07:14 AM
08-16-2000 07:14 AM
I have two HP-UX 10.20 systems. From systema I enter the following:
remsh systemb -n doit
doit is a shell script that looks like this:
cd /a/b/c/d
domore
echo "do it done"
domore is a shell script that resides in directory /a/b/c/d and looks like this
upgm udata
echo "do more done"
upgm is a unikix cobol program that accesses data in the udata file. When
I proceed as above, I get an error.
START
Execution error : file 'udata.int'
error code: 114, pc=235, call=1, seg=0
114 Attempt to access item beyond bounds of memory (Signal 10)
HP/MF COBOL Version: B.12.25
HP-UX triserv B.10.20 E 9000/899
pid: 12246 gid: 101 uid: 107
Wed Aug 16 08:08:55 2000
8:08am up 22 days, 10:08, 172 users, load average: 1.28, 0.83, 0.99
Thread mode: No Threads
RTS Error: COBOL
Sync Signals: COBOL
ASync Signals: COBOL
cobtidy on exception: False
do more done
do it done
However, if I logon to systemb and enter doit, everything works okay! I suspect that so environment variable is to blame. To diagnose that, I inserted echo "`pwd`" commands into doit and domore. They both show directory /a/b/c/d. Any ideas?
TIA
Terry Kummell
remsh systemb -n doit
doit is a shell script that looks like this:
cd /a/b/c/d
domore
echo "do it done"
domore is a shell script that resides in directory /a/b/c/d and looks like this
upgm udata
echo "do more done"
upgm is a unikix cobol program that accesses data in the udata file. When
I proceed as above, I get an error.
START
Execution error : file 'udata.int'
error code: 114, pc=235, call=1, seg=0
114 Attempt to access item beyond bounds of memory (Signal 10)
HP/MF COBOL Version: B.12.25
HP-UX triserv B.10.20 E 9000/899
pid: 12246 gid: 101 uid: 107
Wed Aug 16 08:08:55 2000
8:08am up 22 days, 10:08, 172 users, load average: 1.28, 0.83, 0.99
Thread mode: No Threads
RTS Error: COBOL
Sync Signals: COBOL
ASync Signals: COBOL
cobtidy on exception: False
do more done
do it done
However, if I logon to systemb and enter doit, everything works okay! I suspect that so environment variable is to blame. To diagnose that, I inserted echo "`pwd`" commands into doit and domore. They both show directory /a/b/c/d. Any ideas?
TIA
Terry Kummell
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 07:19 AM
08-16-2000 07:19 AM
Re: remsh?
remsh is doing the job. Try to set up the path required in your script. (path to cobol, or apps). PATH=$PATH:/whatever/you/need:/plus/more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 07:38 AM
08-16-2000 07:38 AM
Solution
Terry:
The problem is that remsh does not inherit the environment (which you inherit when you rlogin - ie. there is no equivalent for .profile) so you would have to set the environments... PATH as described above, as well as any SHLIB_PATH etc.
actually, you might want to rlogin to the box and type env, so that you know what variables to set.
Good luck
The problem is that remsh does not inherit the environment (which you inherit when you rlogin - ie. there is no equivalent for .profile) so you would have to set the environments... PATH as described above, as well as any SHLIB_PATH etc.
actually, you might want to rlogin to the box and type env, so that you know what variables to set.
Good luck
nothing wrong with me that a few lines of code cannot fix!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 09:52 AM
08-16-2000 09:52 AM
Re: remsh?
The issue was two environmenet variables. One for informix and the other was the PATH. I took your advice and used rlogin then env to find out what the working environmente looked like. Then, I just modified the shell script to add these variables. I was able to simplify the shell script by incorporating the domore shell script in the doit shell script. So my final shell script looks like this:
PATH=/all/sorts/of/path/stuff/plus/my/working/directory
INFORMIXDIR=/informixdir/
export PATH INFORMIXDIR
cd /a/b/c/d
upgm udata
and all is well! Thanks for the help!
Terry Kummell
PATH=/all/sorts/of/path/stuff/plus/my/working/directory
INFORMIXDIR=/informixdir/
export PATH INFORMIXDIR
cd /a/b/c/d
upgm udata
and all is well! Thanks for the help!
Terry Kummell
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