CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: How to get envirinment variable from multiple servers using perl: Edit Log



Nithya
New User

Oct 10, 2014, 8:55 AM


Views: 47713
How to get envirinment variable from multiple servers using perl

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.


Code
[ksnithyaaix@gmail.com] 


(This post was edited by Nithya on Oct 10, 2014, 9:36 AM)


Edit Log:
Post edited by Nithya (New User) on Oct 10, 2014, 9:36 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives