10 More Discussions You Might Find Interesting
1. Emergency UNIX and Linux Support
Is there a way to understand/look into the list of interfaces that are connected to an AIX box.
Primarily I am looking for the list of IP addresses that can connect to an AIX server, and using which port the access is possible? (2 Replies)
Discussion started by: ggayathri
2 Replies
2. Solaris
Hello guys,
I am trying to install ethereal in Solaris10 based on i386 system.
But i can find only packet for sparc.
Any idea?
Thanks a lot! (2 Replies)
Discussion started by: @dagio
2 Replies
3. Programming
i am having some coding problem in c for interfacing the GSM module through serial port. i want to send/receive sms. i have done all the setting for the port and know the AT command to use in this but i am actually having problem in reading and writing from serial port how to handle the signal when... (1 Reply)
Discussion started by: harsh_it
1 Replies
4. Programming
how can I make interfacing with the SCSI controller on linux system using C language to send or recieve data via this SCSI port like I made with serial port and socket ???:confused:
how can I deal with this port ??:rolleyes:
how can I get its address or its device name ???:eek:
thanks for help. (2 Replies)
Discussion started by: Ahmed waheed
2 Replies
5. Shell Programming and Scripting
I want to make a GUI in perl tk where I can give some user input. This user input is the command line argument for a shell script. After giving the input parameters I want the user to press a button and the shell script should start executing. How should i interface the shell script with the GUI? (0 Replies)
Discussion started by: lassimanji
0 Replies
6. Solaris
I have installed ethereal on solaris 10. however I can execute the ./ethereal using the root account. if tried to execute same from non-root users i am facing the following error.
ethereal: The capture session could not be initiated (/dev/ce: Permission denied).
Please check to make sure... (2 Replies)
Discussion started by: vishwanathhcl
2 Replies
7. AIX
Hi to all ....
i must install ethereal-0.8.18-1 on aix system , for do some problems determination about network problems .
I have a .bff file of ethereal but for resolve dependencies i need this two .bff package needed :
freeware.gtk+.rte 1.2.8.0 # Base Level Fileset... (1 Reply)
Discussion started by: BabylonRocker
1 Replies
8. SCO
Which version of Ethereal can I use for SCO OpenServer 5.0.7??? (0 Replies)
Discussion started by: bean2
0 Replies
9. IP Networking
Hi,
I work with an interface which connects to a Switch company and pulls information from certain sockets. During the night, somehow disconnects and it is difficult to prove if it is the interface or the Switch company responsible. I had the suggestion to install sniffers to do some network... (2 Replies)
Discussion started by: giulianob
2 Replies
10. IP Networking
One of the users on my network took my aside and showed me a program called ethereal that can sniff out packets on the network. He was able to re-build a packet stream and see pretty clearly what other users where looking at.
I am using a hub. If I use a switch will that stop ability to be... (7 Replies)
Discussion started by: macdonto
7 Replies
Plack::App::CGIBin(3pm) User Contributed Perl Documentation Plack::App::CGIBin(3pm)
NAME
Plack::App::CGIBin - cgi-bin replacement for Plack servers
SYNOPSIS
use Plack::App::CGIBin;
use Plack::Builder;
my $app = Plack::App::CGIBin->new(root => "/path/to/cgi-bin")->to_app;
builder {
mount "/cgi-bin" => $app;
};
# Or from the command line
plackup -MPlack::App::CGIBin -e 'Plack::App::CGIBin->new(root => "/path/to/cgi-bin")->to_app'
DESCRIPTION
Plack::App::CGIBin allows you to load CGI scripts from a directory and convert them into a PSGI application.
This would give you the extreme easiness when you have bunch of old CGI scripts that is loaded using cgi-bin of Apache web server.
HOW IT WORKS
This application checks if a given file path is a perl script and if so, uses CGI::Compile to compile a CGI script into a sub (like
ModPerl::Registry) and then run it as a persistent application using CGI::Emulate::PSGI.
If the given file is not a perl script, it executes the script just like a normal CGI script with fork & exec. This is like a normal web
server mode and no performance benefit is achieved.
The default mechanism to determine if a given file is a Perl script is as follows:
o Check if the filename ends with ".pl". If yes, it is a Perl script.
o Open the file and see if the shebang (first line of the file) contains the word "perl" (like "#!/usr/bin/perl"). If yes, it is a Perl
script.
You can customize this behavior by passing "exec_cb" callback, which takes a file path to its first argument.
For example, if your perl-based CGI script uses lots of global variables and such and are not ready to run on a persistent environment, you
can do:
my $app = Plack::App::CGIBin->new(
root => "/path/to/cgi-bin",
exec_cb => sub { 1 },
)->to_app;
to always force the execute option for any files.
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
Plack::App::File CGI::Emulate::PSGI CGI::Compile Plack::App::WrapCGI
See also Plack::App::WrapCGI if you compile one CGI script into a PSGI application without serving CGI scripts from a directory, to remove
overhead of filesystem lookups, etc.
perl v5.14.2 2011-11-02 Plack::App::CGIBin(3pm)