08-28-2015
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I acciedentaly terminated the x window session on my sco os5 machine. Can somone help me get it going again with out rebooting? Another ? Does anyone know where I can get the VNC version for SCO or can some one help me make changes to the RH version to work for SCO OS5.
Thanks. (2 Replies)
Discussion started by: ruizf
2 Replies
2. UNIX for Dummies Questions & Answers
hello
at first sorry for my english... i know it isn't good but i hope you can understand me
i want to install xwindow on my old pentium133MHz, 49MB ram memory, graphic card - stb horizon64 1MB (with old monochromatic monitor - horizontal 30.6-36.0, vertical 50-90) all this under redhat6.1...... (1 Reply)
Discussion started by: pgas
1 Replies
3. UNIX for Dummies Questions & Answers
ok, i've got a FreeBSD box, and it doesn't like my monitor. At all. The first time i installed BSD, it wouldn't write the changes. I reformated and reinstalled, and this time it would write, but when i went to load the x server with startx it would go through the load process, but say "no screens"... (4 Replies)
Discussion started by: GirlsHackBetter
4 Replies
4. UNIX for Dummies Questions & Answers
I am installing Oracle 10g on UNIX. I have prepared the server in various fields. Then when I started installation, one error message came out like this:
Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set.
So I check... (3 Replies)
Discussion started by: duke0001
3 Replies
5. UNIX for Dummies Questions & Answers
I use Ubuntu Linux, and I'd like to become more familiar with the CLI. I have these questions:
1) How to remove a directory that is not empty? The only option in man rmdir is -p and that does not do what I need. rm -R needs sudo for some reason.
2) What is a CLI command to make all the files... (3 Replies)
Discussion started by: dotancohen
3 Replies
6. UNIX Desktop Questions & Answers
I am using a Mandrake spinoff (PCLinux) and would like to have a yakuake terminal started
when I launch xwin. Where is the start up script?
Thanks JZ (2 Replies)
Discussion started by: jwzumwalt
2 Replies
7. Shell Programming and Scripting
What is the command to exit xwindow when i am in xwindow's terminal.
Thanks in advance. (3 Replies)
Discussion started by: uativan
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
On my PC which is a XP, I have installed SSH client from www.ssh.com company. Linux server is a CentOS version 5.
Before using my application, I want to test it and I am trying to get the xclock display back to my window and it's not working. Any idea.
#... (4 Replies)
Discussion started by: samnyc
4 Replies
9. Red Hat
Dear Experts,
Our system admin is struggling over a month with an issue regarding xwindow. RHEL 5.4 is our server OS. whenever I export Display with my machine IP and run xclock. It is not working. We are using DHCP. Please tell me what checks and actions should be taken from our sys admin point... (8 Replies)
Discussion started by: saifurshaon
8 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys
can any one help me in this regard ..
I'm using Reflaction and xManager but I want list of another xWindow tools between Unix and Windows ..
Pls advice .. (1 Reply)
Discussion started by: top.level
1 Replies
LEARN ABOUT MOJAVE
app::cli
App::CLI(3) User Contributed Perl Documentation App::CLI(3)
NAME
App::CLI - Dispatcher module for command line interface programs
SYNOPSIS
package MyApp;
use base 'App::CLI'; # the DISPATCHER of your App
# it's not necessary putting the dispather
# on the top level of your App
package main;
MyApp->dispatch; # call dispather in where you want
package MyApp::List;
use base qw(App::CLI::Command); # any (SUB)COMMAND of your App
use constant options => qw(
"h|help" => "help",
"verbose" => "verbose",
'n|name=s' => 'name',
);
use constant subcommands => qw(User Nickname type); # if you want subcommands
# automatically dispatch to subcommands
# when invoke $ myapp list [user|nickname|--type]
# note 'type' lower case in first char
# is subcommand of old genre which is deprecated
sub run {
my ($self, @args) = @_;
print "verbose" if $self->{verbose};
my $name = $self->{name}; # get arg following long option --name
if ($self->{help}) {
# if $ myapp list --help or $ $ myapp list -h
# just only output PODs
} else {
# do something when imvoking $ my app list
# without subcommand and --help
}
}
package MyApp::List::User;
use base qw(App::CLI::Command);
use constant options => (
"h|help" => "help",
);
sub run {
my ($self,@args) = @_;
# code for listing user
}
pakcage MyApp::List::Nickname;
use base qw(App::CLI::Command);
use constant options => (
"sort=s" => "sort",
);
sub run {
my ($self,@args) = @_;
# code for listing nickname
}
package MyApp::List::type; # old genre of subcommand could not be cascading infinitely
use base qw(MyApp::List); # should inherit its parents command
sub run {
my ($self, @args);
# run to here when invoking $ myapp list --type
}
package MyApp::Help;
use base 'App::CLI::Command::Help';
use constant options => (
'verbose' => 'verbose',
);
sub run {
my ($self, @arg) = @_;
# do something
$self->SUPER(@_); # App::CLI::Command::Help would output PDOs of each command
}
DESCRIPTION
"App::CLI" dispatches CLI (command line interface) based commands into command classes. It also supports subcommand and per-command
options.
get_opt([@config], %opt_map)
give options map, process by Getopt::Long::Parser
interface of dispatcher
cmd_map($cmd)
find package name of subcommand in constant %alias
if it's finded, return ucfirst of the package name,
otherwise, return ucfirst of $cmd itself.
get_cmd($cmd, @arg)
return subcommand of first level via $ARGV[0]
SEE ALSO
App::CLI::Command Getopt::Long
AUTHORS
Chia-liang Kao <clkao@clkao.org> Cornelius Lin <cornelius.howl@gmail.com> shelling <navyblueshellingford@gmail.com>
COPYRIGHT
Copyright 2005-2006 by Chia-liang Kao <clkao@clkao.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.18.2 2010-12-04 App::CLI(3)