Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.390.795 Times

Term::Shell 0.01

  Date Added: October 21, 2010  |  Visits: 850

Term::Shell

Report Broken Link
Printer Friendly Version


Product Homepage
Download (79 downloads)



Term::Shell is a simple command-line shell framework. SYNOPSIS package MyShell; use base qw(Term::Shell); sub run_command1 { print "command 1!n"; } sub smry_command1 { "what does command1 do?" } sub help_command1 { <<END; Help on command1, whatever that may be... END } sub run_command2 { print "command 2!n"; } package main; my $shell = MyShell->new; $shell->cmdloop; Term::Shell lets you write simple command-line shells. All the boring details like command-line parsing, terminal handling, and tab completion are handled for you. The base class comes with two commands pre-defined: exit and help. To write a shell with an exec command, do something like this: package MyShell; use base qw(Term::Shell); # or manually edit @MyShell::ISA. sub run_exec { my ($o, $cmd, @args) = @_; if ($cmd ne $0) { print "Im sorry youre leaving us...n"; } exec $cmd, @args; exit 1; } When Term::Shell needs to handle the exec command, it will invoke this method. Thats all there is to it! You write handlers, and Term::Shell handles the gory details..

Requirements: No special requirements
Platforms: Linux
Keyword: Command-line Command-line Shell Exec Libraries Myshell Programming Shell Simple Sub Termshell
Users rating: 0/10

License: Freeware Size: 17.41 KB
USER REVIEWS
More Reviews or Write Review


TERM::SHELL RELATED
Utilities  -  LDAP Shell 2.0
LDAP Shell is an interactive LDAP shell written in Perl and allowing basic administrative functionality, such as crawling the directory tree and modifying entries. It is composed of two parts: Net::LDAP::Config, and ldapsh. Net::LDAP::Config...
40.96 KB  
Libraries  -  Proc::Command 0.04
Proc::Command is a backtick that does not use the shell for Perl under Windows. SYNOPSIS use Proc::Command @reponse = Proc::Command->command($command) @reponse = Proc::Command->command($command, $trys) @reponse =...
16.38 KB  
Libraries  -  Algorithm::Line::Bresenham 0.11
Algorithm::Line::Bresenham is a Perl module that contains a simple pixellated line-drawing algorithm. SYNOPSIS use Algorithm::Line::Bresenham qw/line/; my @points = line(3,3 => 5,0); # returns the list: [3,3], [4,2], [4,1], [5,0] line(3,3...
3.07 KB  
Programming  -  console_reader 1.1
console_reader is a class useful when you want to read and interpretate the output of a command line program, and espacialy when you want to write a graphical frontend to a command line program. This class has a protected member...
1.05 MB  
Printer Tools  -  xjobs 20120412
xjobs reads job descriptions line by line and executes them in parallel. xjobs limits the number of parallel executing jobs and starts new jobs when jobs finish. Therefore, it combines the arguments from every input line with the utility and...
92.16 KB  
Libraries  -  Net::IPMessenger::MessageCommand 0.06
Net::IPMessenger::MessageCommand is a Perl module for message command definition and accessor class. SYNOPSIS use Net::IPMessenger::MessageCommand; my $command = Net::IPMessenger::MessageCommand->new(SENDMSG)->set_secret; This defines IP...
12.29 KB  
Shell & Desktop  -  eltclsh 1.5
eltclsh (editline tcl shell) is an interactive shell for the TCL programming language. It provides command line editing, history browsing as well as variables and command completion thanks to editline features. The completion engine is...
317.44 KB  
Development Tools  -  hydraulic transmission lines 1.0
Lumped Parameter Model of Hydraulic Transmission lineHere is a lumped parameter model of a hydraulic transmission line.The line is modeled by one, two, three, four and ten lump models.The simulation program presents the transient response in...
122.88 KB  
Education  -  Cell Command 1.2
SUBSCRIPTION INFORMATION Cell Command requires a Filament Games subscription to play. For more information, visit www.filamentgames.com. WELCOME TO CELL COMMAND! Cell Command gives students the ability to shrink down to a...
162 MB  
Utilities  -  Net-SNMP 5.4.1
Net-SNMP project provides tools and libraries relating to the Simple Network Management Protocol. Installation: The `configure shell script attempts to guess correct values for various system-dependent variables used during compilation. It...
3.81 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB