Beispiel #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);
 }
Beispiel #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));
 }
Beispiel #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));
 }