Help for this page
env SSH_AUTH_SOCK=$SSH_AUTH_SOCK inner_script.sh
my $command="rdist $RDIST_OPTIONS"; open(RDIST, "$command 2>&1 |" ) || ... while ( <RDIST> ) { ... some other commands/conditional statements ... }