Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Snippets

    Javascript Terminal Client

    download button

    Downloads: 490  Tell us about an update
    User Rating:
    Rated by:
    Good (3.5/5)
    2 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Michiel van Eerd | More scripts
    www.webessence.nl
    GPL - GNU General Public License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    JavaScript
    September 2nd, 2010, 03:04 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Javascript Terminal Client description

    This is a JavaScript terminal client

    It was tested in Opera, Firefox, IE 7 and 8, Chrome and Safari.

    In the console.php file, set the PATH_ROOT constant to the root directory tor the directory to act as the root directory for the console.

    Also set the HIDE_ROOT to true or false. If it is true, the client doesn't see the whole path, but only the part after PATH_ROOT.

    For exmaple, if the PATH_ROOT is /home/softpedia/ and HIDE_ROOT is true, when the client does "ls /", this is translated to "ls /home/softpedia/" and when the client is in the /home/softpedia/subdir/ directory and does "pwd", it will see "/subdir". This is a way for the clients to never see the real path.

    The developer can easilly add extra commands to the console, just by adding new functions to the console.php file.

    All functions have the format execute_[command].

    For example, the function that executes the cd command is execute_cd().

    The parameters are automatically accessible with arg0, arg1, arg2 and so on.

    Here are some key features of "Javascript Terminal Client":

    Commands:
    · ls
    · cd
    · cat
    · vi (this is not really VI, just a simple text editor, use CTRL + S to save, CTRL + W to close without saving)
    · rm
    · rmdir
    · mv
    · cp
    · pwd
    · clear (to clear the screen)
    · use up en down keys to scroll through the command history
    · exit to log off

    Requirements:

    · JavaScript enabled on client side



    TAGS:

    terminal client | interactive console | command line | CLI | terminal | console

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM