- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to use PUTENV and GETENV in different process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
10-08-2024 07:13 AM - last edited on 10-08-2024 08:29 PM by support_s
10-08-2024 07:13 AM - last edited on 10-08-2024 08:29 PM by support_s
how to use PUTENV and GETENV in different process
Hi team ,
I am trying to put the enviroment variable using PUTENV from one vas (procees) and accessing the same environment variable in different vas(process) using GETENV api .
when I tried this way but I am facing core dump , can you please help me on this
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 04:27 PM
10-08-2024 04:27 PM
Re: how to use PUTENV and GETENV in different process
> I am trying to put the enviroment variable using PUTENV from one vas
> (procees) and accessing the same environment variable in different
> vas(process) using GETENV api .
Why should the environment for one process be shared with any other
process?
> when I tried this way but I am facing core dump [...]
What, exactly, failed? Debugging visible code is often easier than
debugging invisible code. With my weak psychic powers, I don't know
what you did. My first guess would be that you got a null pointer from
getenv(), and then you tried to use it. But that's only a guess.
> [...] PUTENV [...] GETENV [...]
Note that in C, case matters. I assume that you mean getenv() and
putenv(), which are the names of functions in the C RTL.