On Fri, Dec 28, 2001 at 12:20:16PM -0500, Maciejewski, Thomas wrote:
> I am having an issue when spawning a child
I understand that this is not uncommon and should not cause undue concern.
> it appears that the environment variable is not being passed to the child
> process here is the code:
Which one, $PATH?
> my $kidpid = open($fh, "-|");
> if (! $kidpid) {
> open(STDERR, "> /dev/null"); # rlog may complain; ignore.
> exec("rlog","-r", @files);
> }
>
> if I hard code the path to rlog everything works fine ...
> also I printed out the path and it seems that the parent has the correct
> path to rlog
What about the child?
> any ideas?
Everything works fine for me. The child inherits the parent's environment
as it should. You'll need to provide a working (failing) code section I
think.
Best wishes to you and your offspring.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]