More questions about how to issue a C-SHELL command within a C program
Randal Schwartz
merlyn at iwarp.intel.com
Thu Aug 16 17:34:52 AEST 1990
In article <FPB.90Aug16004855 at ittc.ittc.wec.com>, fpb at ittc (Frank P. Bresz) writes:
| Why not just use the putenv system call with something akin to:
|
| putenv("TERM=adm3a"); /* notify subprocess that it is an adm3a terminal */
Nope. That changes the *current* process (the C program), not the
parent process (the parent shell). You *must* involve the parent
process if you want programs invoked after the C program to see the
change (unless you intend the C program to perform all the future
invocations... yuck).
Just another UNIX hacker,
--
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
More information about the Comp.unix.questions
mailing list