runShellCommand on Arduino Yun

Im using Arduino Yun, this is my sketch:

#include <Bridge.h>
#include <Process.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(4, 5, 10, 11, 12, 13);
void setup() {
  Serial.begin (115200);
  while(!Serial);
  lcd.begin(16, 2);
  Bridge.begin();
}

void loop() {
  Process p;
  p.runShellCommand("/usr/bin/test.lua");
  while(p.available() > 0) {
    char c = p.read();
    lcd.print(c);
    Serial.print(c);
  } 
  Serial.println();
  delay(10000);
}

test.lua:

#!/usr/bin/lua
print("This shit doesn't work")

I tried to run /usr/bin/pretty-wifi-info.lua, so it works fine, but test.lua doesn't work. What am i doing wrong?

Up. Help.

You need to look in the Yun's own forum.

Mark

Try this, works for me

 p.runShellCommand("lua /usr/bin/test.lua 2>&1");

This:

2>&1

redirects the error messages, so you can see it in serial monitor.

andaAs Mark says : use the Yun subforun