<commit_before>
/* Demonstrate shell commands */

#include <Process.h>

void setup() {
  Bridge.begin();
  Console.begin();
  Console.buffer(64);
}

void loop() {
  Process p;
  // This command line prints the name of the wireless that the board is connected to or that the board has created
  p.runShellCommand(F("lua /usr/lib/lua/pretty_wifi_info.lua | grep SSID"));

  // Read command output
  while (p.available()) {
    char c = p.read();
    Console.print(c);
  }
  Console.flush();
  
  delay(5000);
}

<commit_msg>Changed ShellCommands from Console to Serial<commit_after>
/*
 Running shell coommands using Process class. 
 
 This sketch demonstrate how to run linux shell commands
 using an Arduino Yún. 

 The circuit:
 * Arduino Yun
 
 created 12 Jun 2013
 by <NAME>
 modified 21 June 2013
 by <NAME>
 
 This example code is in the public domain.

 */

#include <Process.h>

void setup() {
  // initialize the Bridge and Serial connections:
  Bridge.begin();
  Serial.begin(9600);
}

void loop() {
  Process p;
  // This command line prints the name of the wireless network
  // that the board is connected to, or the network which the board has created:
  p.runShellCommand(F("lua /usr/lib/lua/pretty_wifi_info.lua | grep SSID"));

  // Read command output
  while (p.available()) {
    char c = p.read();
    Serial.print(c);
  } 
  while (true);    // do nothing more
}


{'fraction_non_alphanumeric': 0.11263537906137185, 'fraction_numerical': 0.01588447653429603, 'mean_word_length': 3.174698795180723, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3439453', 'n_tokens_mistral': 464, 'n_tokens_neox': 426, 'n_words': 158}