Term::Shell 0.01
Sponsored Links
Term::Shell 0.01 Ranking & Summary
File size:
0.017 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1090
Date added:
2006-11-02
Publisher:
Neil Watkiss
Term::Shell 0.01 description
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.
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.
Term::Shell 0.01 Screenshot
Term::Shell 0.01 Keywords
Shell 0.01
MyShell
Command-line shell
Command-line
shell
simple
sub
exec
command1
Term::Shell
TermShell
Term::Shell 0.01
Libraries
Programming
Bookmark Term::Shell 0.01
Term::Shell 0.01 Copyright
WareSeeker periodically updates pricing and software information of Term::Shell 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Term::Shell 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Unix shell
command line shell
microsoft command line shell automation
command line
microsoft command line shell automation windows
command-line reference
command line interface
generation microsoft command line shell windows powershell
command line tricks
command line tutorial
linux command line
simple ira
shell federal credit union
command-line parameter
performance monitor command line shell
command line processing
shell gas
tastefully simple
Related Software
Term::ShellUI is a fully-featured shell-like command line environment. Free Download
Fry::Shell is a flexible shell framework which encourages using loadable libraries of functions. Free Download
PyLUcene SHell (Plush) is an interactive shell to inspect a Lucene store. Free Download
wdshell is a tool that runs shell commands using RubyWebDialogs. Free Download
xen-shell is a simple console application which allows you to easily allow the owner of a single Xen instance to control it. Free Download
XMMS-Shell provides a simple command line interface for controlling XMMS. Free Download
Shell::Parser is a simple shell script parser. Free Download
SLOOPS - Simple, Light, Object Oriented Persistence System. Free Download
Latest Software
Popular Software
Favourite Software