Description
Execute a remote command.
Parameters
sessionId: The session id - string - required
shellCommand: The shell command - string - required
admin
ssh execute_n_cmd "session1" "pwd;ps -e | grep java";
mentdb
<response>
<validLines>/Users/jimmitry
17233 ?? 12:18.31 /usr/bin/java -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Xdock:icon=images/db128x128_editor.png -Xdock:name=Mentalese Trigger -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.editor.Mentalese_Trigger
57035 ?? 11:09.69 /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/bin/java -cp core:lib/autocomplete-2.6.0.jar:lib/balloontip-1.2.4.1.jar:lib/collections-generic-4.01.jar:lib/colt-1.2.0.jar:lib/commons-io-2.4.jar:lib/commons-lang3-3.4.jar:lib/concurrent-1.3.4.jar:lib/gs-algo-1.3.jar:lib/gs-core-1.3.jar:lib/gs-ui-1.3.jar:lib/gson-2.2.3.jar:lib/j3d-core-1.3.1.jar:lib/java-websocket-1.3.0.jar:lib/javax.el-3.0.0.jar:lib/javax.servlet-api-3.1.0.jar:lib/javax.servlet.jsp-2.3.2.jar:lib/javax.servlet.jsp-api-2.3.1.jar:lib/jetty-all-9.2.2.v20140723.jar:lib/jetty-jsp-jdt-2.3.3.jar:lib/jfreechart-1.5.0.jar:lib/jline-2.12.1.jar:lib/json-simple-1.1.1.jar:lib/JTattoo-1.6.11.jar:lib/log4j-1.2.16.jar:lib/quartz-2.2.1.jar:lib/quartz-jobs-2.2.1.jar:lib/rsyntaxtextarea-2.6.1.jar:lib/slf4j-api-1.6.6.jar:lib/slf4j-log4j12-1.6.6.jar:lib/stax-api-1.0.1.jar:lib/vecmath-1.3.1.jar:lib/wstx-asl-3.2.6.jar -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 re.jpayet.mentdb.editor.Mentalese_Editor localhost 9998 admin pwd pwd 10000 10000
66220 ?? 0:00.01 bash -c pwd;ps -e | grep java
66222 ?? 0:00.00 grep java
65926 ttys000 1:13.83 /usr/bin/java -server -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.ext.server.Start</validLines>
<exitCode>0</exitCode>
</response>