Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }