public void Exec01() { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(@" Connecté a : "); Console.WriteLine(m_client.ConnectionInfo.Host); ClientGoHSsh.ExecCommand(m_client, "uname -a"); }
public void Exec03() { Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(@" Entrer une commande ssh : "); string readLine = Console.ReadLine(); while (readLine != "exit") { ClientGoHSsh.ExecCommand(m_client, readLine); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(@" Entrer une commande ssh : "); readLine = Console.ReadLine(); } Console.ForegroundColor = ConsoleColor.Gray; }
public void Exec02() { ClientGoHSsh.ExecCommand(m_client, "piName=$(uname -n) && python /home/pi/Desktop/AZURIL/hat/hatSay.py $piName "); }