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

Please describe the initial process sequence while the system boots up?

0 Answers  


Which ipc is the fastest in unix?

0 Answers  


What are the system calls used for process management:

5 Answers  


What are the various schemes available?

0 Answers  


Explain the advantage of executing a process in background?

0 Answers  






Explain what is the process id for kernel process?

0 Answers  


What is unix ipc?

0 Answers  


Predict the output of the following program code main() { fork(); printf("Hello World!"); }

3 Answers  


how to create tree of processes. one parent and 3 childs.

1 Answers   HCL,


What is i-node numbers?

0 Answers  


Explain a zombie?

0 Answers  


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

1 Answers  


Categories