Among varous other items, I'm trying to find out what "Authentication Management Infrastructure" (package SUNWamix) does, and why would a sysadmin disable it? The reason given is 'for security purposes' without explanation ... how and why is AMI such a 'security risk' that it has to be turned off?... (3 Replies)
Hi ,
How can I collect information about any Hardware , specially HBA (Host Bus Adapter) ....
I tried prtdiag but it is not shoing the HBA details.
Regards (4 Replies)
Hi,
/sbin/ifconfig -a
when i login as guest user , output like below,
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet... (5 Replies)
How to find the entire configuration details of a solaris.
I need to know what partion were made, which OS is used and wat version is used etc...
Thanks to tell (4 Replies)
I have scheduled couple of shell scripts to run using 'at' command.
The o/p of at -l is:
$ at -l
1320904800.a Thu Nov 10 01:00:00 2011
1320894000.a Wed Nov 9 22:00:00 2011
1320876000.a Wed Nov 9 17:00:00 2011
$ uname -a
SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
in AIX, we have lspv command to display details of physical volume like below:
lspv -l hdisk102
hdisk102:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
oradata112lv 1599 1599 320..320..319..320..320 /oracle/oradata11
Can you please tell how to... (2 Replies)
Hi All,
I want to find MQ details on a solaris 5.8 server , does anyone knows the
command to findout the details
I have used below command to find the following o/p
command
pkginfo | grep -i mq
o/p
application mqm WebSphere MQ for Sun Solaris
application... (4 Replies)
Hi All,
Where can I find all the NTP server names/ip addresses on Linux/Solaris systems. How can I grep these names/IP address from specific files from a specific OS (Linux/Solaris).
I know on linux /etc/ntp.conf and /etc/ntp/ntp.conf on solaris contains these details. Whether I am right about... (4 Replies)
i need to extract following information through command line on solaris machine :
1.manufacturer name (hardware as well as OS)
2.Model number
3.Serial number - Serial Number of the device or the Physical device serial number for Virtual Servers
4.whether the server is physical or virtual -... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies
LEARN ABOUT DEBIAN
mojo
Mojo(3pm) User Contributed Perl Documentation Mojo(3pm)NAME
Mojo - Duct tape for the HTML5 web!
SYNOPSIS
use Mojo::Base 'Mojo';
# All the complexities of CGI, PSGI, HTTP and WebSockets get reduced to a
# single method call!
sub handler {
my ($self, $tx) = @_;
# Request
my $method = $tx->req->method;
my $path = $tx->req->url->path;
# Response
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body("$method request for $path!");
# Resume transaction
$tx->resume;
}
DESCRIPTION
Mojo provides a flexible runtime environment for Perl real-time web frameworks. It provides all the basic tools and helpers needed to write
simple web applications and higher level web frameworks such as Mojolicious.
See Mojolicious for more!
ATTRIBUTES
Mojo implements the following attributes.
"home"
my $home = $app->home;
$app = $app->home(Mojo::Home->new);
The home directory of your application, defaults to a Mojo::Home object which stringifies to the actual path.
# Generate portable path relative to home directory
my $path = $app->home->rel_file('data/important.txt');
"log"
my $log = $app->log;
$app = $app->log(Mojo::Log->new);
The logging layer of your application, defaults to a Mojo::Log object.
# Log debug message
$app->log->debug('It works!');
"ua"
my $ua = $app->ua;
$app = $app->ua(Mojo::UserAgent->new);
A full featured HTTP 1.1 user agent for use in your applications, defaults to a Mojo::UserAgent object. Note that this user agent should
not be used in plugins, since non-blocking requests that are already in progress will interfere with new blocking ones.
# Perform blocking request
my $body = $app->ua->get('mojolicio.us')->res->body;
METHODS
Mojo inherits all methods from Mojo::Base and implements the following new ones.
"new"
my $app = Mojo->new;
Construct a new Mojo application. Will automatically detect your home directory and set up logging to "log/mojo.log" if there's a "log"
directory.
"build_tx"
my $tx = $app->build_tx;
Transaction builder, defaults to building a Mojo::Transaction::HTTP object.
"config"
my $config = $app->config;
my $foo = $app->config('foo');
$app = $app->config({foo => 'bar'});
$app = $app->config(foo => 'bar');
Application configuration.
# Manipulate configuration
$app->config->{foo} = 'bar';
my $foo = $app->config->{foo};
delete $app->config->{foo};
"handler"
$app->handler($tx);
The handler is the main entry point to your application or framework and will be called for each new transaction, which will usually be a
Mojo::Transaction::HTTP or Mojo::Transaction::WebSocket object. Meant to be overloaded in a subclass.
sub handler {
my ($self, $tx) = @_;
...
}
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo(3pm)