示例#1
0
 static void Main(string[] args)
 {
     var c = new SSHConnection("tev01.phys.washington.edu", "gwatts");
     var f = c.CopyToLocal("./wget-log", "wget.log");
     Console.WriteLine(f.FullName);
 }
示例#2
0
 /// <summary>
 /// Attempt to do an ls of our home directory on the tev machines.
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     var c = new SSHConnection("tev01.phys.washington.edu", "gwatts");
     c.ExecuteCommand("ls", l => Console.WriteLine(l));
 }
示例#3
0
 static void Main(string[] args)
 {
     var c = new SSHConnection("tev01.phys.washington.edu", "gwatts");
     c.ExecuteCommand("export JUNK=hi", l => Console.WriteLine(l));
     c.ExecuteCommand("echo This is $JUNK", l => Console.WriteLine(l));
 }