How to get yun name in sketch?

How to get yun name in sketch?

Get hostname at linux side:

root@Arduino:/mnt/sda1# hostname
Arduino

Arduino code(sketch):

#include <Process.h>
void setup() {
 Serial.begin (9600);  #9600 is default speed for monitor
 while(!Serial);
 Bridge.begin();
}

void loop() {
 Process p;
 String hostname = "";
 char c;
 p.runShellCommand("hostname");
 while(p.available() > 0) {
   c = p.read();
   Serial.print(c);
   hostname.concat(c);
 } 
 Serial.println();
  if (hostname != "") {
    Serial.println(hostname);
  }
 delay(100000); #increase repeat print 
}

Wow~ think you, sonnyyu.