
Nithya
New User
Oct 10, 2014, 8:55 AM
Post #1 of 4
(45452 views)
|
How to get envirinment variable from multiple servers using perl
|
Can't Post
|
|
Hi Team, 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.
[ksnithyaaix@gmail.com]
(This post was edited by Nithya on Oct 10, 2014, 9:36 AM)
|