I have written script to get the environment variable as input and list some files. -> cat env.pl #!/usr/bin/perl $x=`ssh testserver ls -l $ENV{TNS_ADMIN}/tnsnames.ora`; print $x;

it is not working fine. Throwing error. It is throwing error as below. It is not taking the output of $ENV{TNS_ADMIN} in testserver. Please help me. It is urgent. ./env.pl <http:/http://env.pl//> cat: 0652-050 Cannot open /tnsnames.ora.

Re: [Nithya] How to get envirinment variable from multiple servers using perl
[In reply to]

Can't Post

It seems that the $TNS_ADMIN environment variable is not defined when you log with ssh. Maybe you have to source an Oracle configuration script before. I have the feeling that this question has little to do with Perl and more with Unix and Oracle configuration scripts.

Re: [Nithya] How to get envirinment variable from multiple servers using perl
[In reply to]

Can't Post

This confirms that this is not really a Perl problem, but a configuration issue in your Unix/Linux (whatever) and Oracle set up. It will probably be next to impossible to help you without access to the servers. If you can, ask some help from your system admins and DBAs.