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

Answer Posted / amit

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

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ipc port?

560


Explain linking across directories?

533


What is i-node numbers?

592


Which ipc is the fastest in unix?

546


Explain the advantage of executing a process in background?

508






What is ln(linking)?

578


Explain what is the process id for kernel process?

576


Explain a zombie?

620


How to write the program on full-duplex communication on bidirectional?

545


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

549


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

573


Explain the system calls used for process management?

542


What is unix ipc?

551


Explain what are the system calls used for process management?

512


What is daemon?

530