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

What are the system calls used for process management?

3 Answers  


what is the process id for kernell process

3 Answers  


What is a zombie?

10 Answers  


Explain the advantage of executing a process in background?

0 Answers  


Explain the system calls used for process management?

0 Answers  


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

1 Answers   HCL,


write About fork()?

2 Answers  


What is IPC? What are the various schemes available?

5 Answers  


In Unix inter process communication take place using?

2 Answers  


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

0 Answers  


Explain about daemon?

0 Answers  


what is the process id for kernel process?

8 Answers   IBM, ITI, Military Engineer Services, Remo, TATA,


Categories