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 two different models of ipc differentiate both?

0 Answers  


What is the very first process created by kernel?

0 Answers  


what is the condition required for dead lock in unix sustem ?

2 Answers  


How to write the program on full-duplex communication using 2 FIFOs

0 Answers  


Explain the initial process sequence while the system boots up?

0 Answers  






Please explain fork() system call?

0 Answers  


what is the process id for kernel process?

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


Explain how do you execute one program from within another?

0 Answers  


How do you execute one program from within another?

4 Answers  


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

1 Answers  


What are the system calls used for process management?

3 Answers  


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

0 Answers  


Categories