Link to home
Start Free TrialLog in
Avatar of kalyankondurie
kalyankondurie

asked on

Remote Console Execution

Hi,

I am doing a small test app. It executes a shell command remotely through a webservice. I want to know which commands will raise interative sessions and how do i kill them.

Kalyan
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kalyankondurie
kalyankondurie

ASKER

interactive sessions in the sense those commands which ask for further input such as "time" command in MS-DOS and "rm -i" in unix. Further I want to restrict commands which alter/write to the files on the disk such as rename, move, format, etc.

TIA
such interactive commands bail out with an error 'cause they do not have a valid tty, usually
If you want to restrict anything you have to improve your web service.
Hope you're aware that you have to sanatice *any* input there before processing (for example in a shell).