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 29.548.309 Times

Term::Shell 0.01

  Date Added: October 21, 2010  |  Visits: 787

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  
Finance  -  ChkBk 1.5
ChkBk project is a Bourne Shell script designed to be a simple, yet functional checkbook registry program. I wrote ChkBk because I use my checkcard a lot, but I never have my checkbook with me. I got tired of having to hold on to my receipts...
16.38 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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB