How can you get or set an environment variable from a
program?

Answers were Sorted based on User's Feedback



How can you get or set an environment variable from a program?..

Answer / amit

to get environment variable execute getenv();
to set environment variable execute setenv();

Is This Answer Correct ?    4 Yes 0 No

How can you get or set an environment variable from a program?..

Answer / vishal

Also one can set global system variable "environ"
variable are stored in name=value pair.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix IPC Interview Questions

How to get or set an environment variable from a program?

0 Answers  


What are the various schemes available in ipc?

0 Answers  


Explain the system calls used for process management?

0 Answers  


What is the condition required for dead lock in unix system?

0 Answers  


What is ipc port?

0 Answers  






set-user-id is related to (in unix)

1 Answers  


How can you get or set an environment variable from a program?

2 Answers  


Max relax-able permission value with out giving write permission to others?

0 Answers  


Describe the initial process sequence while the system boots up?

4 Answers  


Please explain fork() system call?

0 Answers  


Explain the advantage of executing a process in background?

0 Answers  


Explain what are the system calls used for process management?

0 Answers  


Categories