Plack::Loader::Shotgun(3pm) User Contributed Perl Documentation Plack::Loader::Shotgun(3pm)NAME
Plack::Loader::Shotgun - forking implementation of plackup
SYNOPSIS
plackup -L Shotgun
DESCRIPTION
Shotgun loader delays the compilation and execution of your application until the runtime. When a new request comes in, this forks a new
child, compiles your code and runs the application.
This should be an ultimate alternative solution when reloading with Plack::Middleware::Refresh doesn't work, or plackup's default "-r"
filesystem watcher causes problems. I can imagine this is useful for applications which expects their application is only evaluated once
(like in-file templates) or on operating systems with broken fork implementation, etc.
This is much like good old CGI's fork and run but you don't need a web server, and there's a benefit of preloading modules that are not
likely to change. For instance if you develop a web application using Moose and DBIx::Class,
plackup -MMoose -MDBIx::Class -L Shotgun yourapp.psgi
would preload those modules and only re-evaluates your code in every request.
AUTHOR
Tatsuhiko Miyagawa with an inspiration from <http://github.com/rtomayko/shotgun>
SEE ALSO
plackup
perl v5.14.2 2011-06-22 Plack::Loader::Shotgun(3pm)
Check Out this Related Man Page
Plack::Handler::CGI(3pm) User Contributed Perl Documentation Plack::Handler::CGI(3pm)NAME
Plack::Handler::CGI - CGI handler for Plack
SYNOPSIS
Want to run PSGI application as a CGI script? Rename .psgi to .cgi and change the shebang line like:
#!/usr/bin/env plackup
# rest of the file can be the same as other .psgi file
You can alternatively create a .cgi file that contains something like:
#!/usr/bin/perl
use Plack::Loader;
my $app = Plack::Util::load_psgi("/path/to/app.psgi");
Plack::Loader->auto->run($app);
This will auto-recognize the CGI environment variable to load this class.
If you really want to explicitly load the CGI handler, you can. For instance you might do this when you want to embed a PSGI application
server built into CGI-compatible perl-based web server:
use Plack::Handler::CGI;
Plack::Handler::CGI->new->run($app);
DESCRIPTION
This is a handler module to run any PSGI application as a CGI script.
UTILITY METHODS
setup_env()
my $env = Plack::Handler::CGI->setup_env();
my $env = Plack::Handler::CGI->setup_env(\%override_env);
Sets up the PSGI environment hash for a CGI request from %ENV> and returns it. You can can provide a hashref of key/value pairs to
override the defaults if you would like.
SEE ALSO
Plack
perl v5.14.2 2011-06-22 Plack::Handler::CGI(3pm)
Hi,
We are running a perl script to upload some data using SQL* Loader. We pipe the data in a http request to SQL*Loader which loads the data to the database. We encounter the error "Inappropirate ioctl for device" when we try to upload huge data. Any solution would be greatly appreciated.... (4 Replies)
Hi All,
I am getting coredump error, when I try to execute Oracle SQL*Loader from Shell script in Unix environment. But SQL*Loader from local machine runs fine with same database.
SQL*Loader: Release 9.2.0.6.0 - Production on Mon Apr 23 05:23:47 2007
Copyright (c) 1982, 2002, Oracle... (3 Replies)
Hi Guys,
I am looking to develop a SQL Loader script that would bascially allow the user to have a txt file (or such) as an input file containing .sql scripts procedures, triggers, bascially anything against a database that could then be run automatically.
Let me break it down a bit more,... (2 Replies)
Hello!
My harddisk is RZ1CB-CS SCSIWC.It runs radar application software on unix operating system.Now dev\rz0a partation not found.So it can't run application recorded at rz0a .How can i solve this problem.? (1 Reply)
Hello!
My harddisk is RZ1CB-CS SCSIWC.It runs radar application software on unix operating system.Now dev\rz0a partation not found.So it can't run application recorded at rz0a .How can i solve this problem.? (1 Reply)
Hi all,
I am a beginner in advanced unix and just i finished my course in that so now I want to develop an application using advanced unix concepts and middleware technology, so that i can gain an initial working knowledge. Kindly give me a suggestion of what i can develop. (5 Replies)
HI there,
I am trying to count manually what this code does but I am stuck and I don't learly see the result. The code works and it compiles and runs but I just don't follow the value of var.
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>
#include<wait.h>... (2 Replies)
Hi
I am running Sql Loader script in Unix Shell Script, I want to make shell script failure when Sql Loader script gives any warnings or failed. Please advise on this.
Thanks (1 Reply)
I want to develop an application. Simply,
Open this application via the web
Access database to retrieve some information
Do some validation and process inputs
Create a file based on a master file from a UNIX server
Put that file to the UNIX server
That is it. I have got suggestions to... (5 Replies)