Re: Shelless SSH - WeOnlyDo Discussion board

Re: Shelless SSH (General questions)

by schenkp, Tuesday, July 07, 2009, 19:38 (5617 days ago) @ woddrazen

Peter,


Are you receiving ThinConnectedFrom variable and value when you list environment variables using my code?

If you do can you show me maybe that line?


Drazen

By using the following code I can see all the variables listed in a command prompt including the ThinConnectedFrom=172.21.72.57

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)


{

System.Collections.IDictionary envVars = Environment.GetEnvironmentVariables();
foreach (System.Collections.DictionaryEntry envVar in envVars)
{
Console.WriteLine(envVar.Key + = + envVar.Value);
Console.ReadLine();
}

}
}
}


Complete thread: