I am a newbie and have tried searching but could not really find what I am looking for. I am sure I am doing something wrong. I would really appreciate if anyone could help me with some pointers. This is not homework!!
I have a weblogic server running on a remote unix host.
I need to somehow manage to execute OS commands on the above unix host without using SSH.
I am wondering if it would be possible to write some kind of servlets or REST end points which would accept OS commands and execute them when called remotely say from my desktop.
But don't try anything with processes until you have understood the classic article by Michael Daconta called When Runtime.exec() won't. ProessBuider makes the operation simpler, but the principles are the same.
And whatever you do, use white listing for allowed commands and arguments. Otherwise if someone can access the servlet, they can execute any arbitrary code. That can be as nasty as "rm -rf /" (wiping your entire hard drive), or even worse.