HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unexpected end of a KSH script
Operating System - HP-UX
1834200
Members
2416
Online
110066
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
12-03-2001 07:56 AM
12-03-2001 07:56 AM
Unexpected end of a KSH script
Hi all,
I'm using the KSH in HP-UX 10.20. In a script A I call the script B then B calls the script C.
It seems impossible but when C ended the control flow is returned not to B but to A.
A and C are different files.
B is a function contained in an environmental file which is executed before starting C.
It seems that the stack is corrupted ...
Have you any ideas?
thank you very much
I'm using the KSH in HP-UX 10.20. In a script A I call the script B then B calls the script C.
It seems impossible but when C ended the control flow is returned not to B but to A.
A and C are different files.
B is a function contained in an environmental file which is executed before starting C.
It seems that the stack is corrupted ...
Have you any ideas?
thank you very much
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 08:00 AM
12-03-2001 08:00 AM
Re: Unexpected end of a KSH script
Hi,
As per your message, B is not a script but a function contained in the environmental file. So, it means it is not to be viewed as a seperate shell but as that of A. So, I am not surprized if C behaves as if it is the child process of A.
-Sri
As per your message, B is not a script but a function contained in the environmental file. So, it means it is not to be viewed as a seperate shell but as that of A. So, I am not surprized if C behaves as if it is the child process of A.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 08:17 AM
12-03-2001 08:17 AM
Re: Unexpected end of a KSH script
Thank you for your reply.
As per my question: C returns to A, ok!, but C has been called by function B which belongs to A, and C returns "out of" B ... it returns to the A code immediately after the B function ... it seems that the "return mechanisms" ignores the B function (not always ...).
I try to explaing again:
A script =
./usr/mycode/myfunctions (B is defined into myfunctions)
./usr/mycode/env
...
...
B
... <--------+
... |
end |
|
B: |
... |
C |
... |
end |
|
C: |
... |
... |
exit 0 -------|
thans !
As per my question: C returns to A, ok!, but C has been called by function B which belongs to A, and C returns "out of" B ... it returns to the A code immediately after the B function ... it seems that the "return mechanisms" ignores the B function (not always ...).
I try to explaing again:
A script =
./usr/mycode/myfunctions (B is defined into myfunctions)
./usr/mycode/env
...
...
B
... <--------+
... |
end |
|
B: |
... |
C |
... |
end |
|
C: |
... |
... |
exit 0 -------|
thans !
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