Advertisement

06.05.2008 at 07:39AM PDT, ID: 23460405
[x]
Attachment Details

shell script printing an env variable

Asked by saibsk in KornShell (ksh), Shell Scripting

I have to echo an environment which is on a different machine than where I am currently executing the shell script.

ssh user@"$machinename" "echo $WIN"  i tried soemthing like this but doesn't print anything. Please advise.Start Free Trial
[+][-]06.05.2008 at 07:49AM PDT, ID: 21720123

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 07:53AM PDT, ID: 21720193

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 08:03AM PDT, ID: 21720338

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 08:03AM PDT, ID: 21720342

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 08:05AM PDT, ID: 21720364

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 08:26AM PDT, ID: 21720621

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: KornShell (ksh), Shell Scripting
Sign Up Now!
Solution Provided By: omarfarid
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628