Remote Console Execution

Posted on 2004-11-09
Last Modified: 2013-12-27

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.

Question by:kalyankondurie
    LVL 51

    Accepted Solution

    what do you mean by "interative sessions"?

    Author Comment

    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.

    LVL 51

    Expert Comment

    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).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now