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); }
/// <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)); }
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)); }