src/Pure/System/isabelle_system.scala
changeset 64139 387c811cad6a
parent 64021 1e23caac8757
child 64152 8f5b23536c56
--- a/src/Pure/System/isabelle_system.scala	Tue Oct 11 09:37:59 2016 +0200
+++ b/src/Pure/System/isabelle_system.scala	Tue Oct 11 09:41:07 2016 +0200
@@ -309,6 +309,8 @@
       result(progress_stdout, progress_stderr, progress_limit, strict)
   }
 
+  def hostname(): String = bash("hostname").check.out
+
   def open(arg: String): Unit =
     bash("exec \"$ISABELLE_OPEN\" " + File.bash_string(arg) + " >/dev/null 2>/dev/null &")