Here is my code
#!/usr/perl5/bin/perl
`test="cc"; export test`;
$cmd = "/usr/ucb/printenv > /tmp/1";
`$cmd`;
For some reason when I look at /tmp/1 file , i don't see the test variables.
If i run
test="cc"; export test`;
through shell directly and run "/usr/ucb/printenv > /tmp/1 then I can see that test is setup.
Please advice!
Start Free Trial