equal
deleted
inserted
replaced
908 def execute_raw(method: String, params: JSON.T = JSON.Object.empty): JSON.T = { |
908 def execute_raw(method: String, params: JSON.T = JSON.Object.empty): JSON.T = { |
909 Isabelle_System.with_tmp_file("params", "json") { params_file => |
909 Isabelle_System.with_tmp_file("params", "json") { params_file => |
910 File.write(params_file, JSON.Format(JSON.Object("params" -> JSON.Format(params)))) |
910 File.write(params_file, JSON.Format(JSON.Object("params" -> JSON.Format(params)))) |
911 val result = |
911 val result = |
912 Isabelle_System.bash( |
912 Isabelle_System.bash( |
913 "ssh -p " + ssh_port + " " + Bash.string(ssh_target) + |
913 SSH.client_command(port = ssh_port) + " -- " + Bash.string(ssh_target) + |
914 " conduit " + Bash.string(method) + " < " + File.bash_path(params_file)).check |
914 " conduit " + Bash.string(method) + " < " + File.bash_path(params_file)).check |
915 JSON.parse(result.out, strict = false) |
915 JSON.parse(result.out, strict = false) |
916 } |
916 } |
917 } |
917 } |
918 |
918 |