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 create tree of processes. one parent and 3 childs.

1 Answers   HCL,


Explain what are the system calls used for process management?

0 Answers  


What are various IDs associated with a process?

4 Answers  


What are two different models of ipc differentiate both?

0 Answers  


What is ln(linking)?

0 Answers  






What Happens when you execute a command?

3 Answers  


Explain how do you execute one program from within another?

0 Answers  


Explain about daemon?

0 Answers  


What is fork()?

0 Answers  


What is a Daemon?

3 Answers  


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

0 Answers  


What are the process states in Unix?

11 Answers  


Categories