[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Changing parent process environment.....
- From: John Summerfield <summer OS2 ami com au>
- To: RedHat Mailing List <redhat-list redhat com>
- Subject: Re: Changing parent process environment.....
- Date: Sun, 28 Feb 1999 09:35:34 +0800 (WST)
On Sat, 27 Feb 1999, Bill Waters wrote:
> Is it possible by any means (shell script, perl, c) possibly using system
> calls
> to make changes to a parent process environment......I know it can be done
> from the command line (in other words, not starting a child process). It
> seems
> to be a reasonable expectation.....I'd like to write a script or a program
> (my own
> command...not an alias) to modify the environment variables as needed for a
> given situation....any ideas or obvious oversights????
Don't know about modifying the environment variables... The next problem is
to tell the program they've changed.
More commonly, one changes a program's configuration files and tells it to
reread them by signalling "SIGHUP" with the kill command. Some programs
(such as samba) notice the file's changed and reread it automatically.
If you really must do it with environment variables, and you can be sure
the program will notice, you could try running it from a program of your
own (which may be in perl or probably a BASH script) that will set then
environment variables based on a changed config file and then HUP its
child.
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]