08-08-2008
that worked, thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If I am sending mail with this command: mail .......@whatever.com < filename, is it possible to get delivery confirmation? Thanks (3 Replies)
Discussion started by: CSGUY
3 Replies
2. Forum Support Area for Unregistered Users & Account Problems
we had a power outage shortly after i registered...
so my mail server was down for a while...
could i get the email confirmation for hackware --> resent please...?
thanx...
...william.o.yates...email removed (3 Replies)
Discussion started by: hackware
3 Replies
3. Shell Programming and Scripting
I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks (35 Replies)
Discussion started by: deaconf19
35 Replies
4. Shell Programming and Scripting
Hi,
I have created a script which searches and replace the searched text from any file in directory.
I want to add a functionality where before replacing the text, script shows the line with the searched text and ask for user confirmation before replacing the text.
Can this be done using SED... (18 Replies)
Discussion started by: Abhinav Tyagi
18 Replies
5. Solaris
Greetings,
I have a bunch of Solaris servers that are running Netbackup as a client. I set them up and my backup admin has confirmed that they are being backed up. But what I want to be able to do is run a command from each Solaris client to see some proof from the client side that the files... (1 Reply)
Discussion started by: BrewDudeBob
1 Replies
6. Shell Programming and Scripting
from one script invoke another script will need to do double confirmation like: 'y' and 'y'
exp:
echo 'y' | /a/b/c.sh
only input 1 'y' in the c.sh, but the c.sh required 2 'y' (twice confirmation)
is there anyway get resolve this issue?
please help (2 Replies)
Discussion started by: kinx
2 Replies
7. Shell Programming and Scripting
Hi All,
While am deleting a file in unix by using the command rm it's deleting the file directly
IT's have to ask the user while deleting like
do you want to delete filename y or N ?
Kindly help on this.
Thanks
Thelak (2 Replies)
Discussion started by: thelakbe
2 Replies
8. UNIX for Dummies Questions & Answers
Hi Guru's
Am looking for linux reboot command which get executed after user confirmation .Can someone please help me with this.:confused::confused::confused: (6 Replies)
Discussion started by: kapil514
6 Replies
9. Web Development
Hi,
I need to add confirmation pop up msg box before deleting the record from database, I have added following snippets to my code but its not working for me, your help will be much appreciated :
print header;
print <<EOF;
<script type="text/javascript">
function confirmOk() {
return... (0 Replies)
Discussion started by: terrykhatri531
0 Replies
10. Forum Support Area for Unregistered Users & Account Problems
Hi Folks,
I just recently registered with the username _Kaede.
Unfortunately, I didn't receive any confirmation mail also not when I changed to another address.
Help is very appreciated.
Thanks and kind regards :) (2 Replies)
Discussion started by: Unregistered
2 Replies
LEARN ABOUT DEBIAN
cgi::psgi
CGI::PSGI(3pm) User Contributed Perl Documentation CGI::PSGI(3pm)
NAME
CGI::PSGI - Adapt CGI.pm to the PSGI protocol
SYNOPSIS
use CGI::PSGI;
my $app = sub {
my $env = shift;
my $q = CGI::PSGI->new($env);
return [ $q->psgi_header, [ $body ] ];
};
DESCRIPTION
This module is for web application framework developers who currently uses CGI to handle query parameters, and would like for the
frameworks to comply with the PSGI protocol.
Only slight modifications should be required if the framework is already collecting the body content to print to STDOUT at one place
(rather using the print-as-you-go approach).
On the other hand, if you are an "end user" of CGI.pm and have a CGI script that you want to run under PSGI web servers, this module might
not be what you want. Take a look at CGI::Emulate::PSGI instead.
Your application, typically the web application framework adapter should update the code to do "CGI::PSGI->new($env)" instead of "CGI->new"
to create a new CGI object. (This is similar to how CGI::Fast object is initialized in a FastCGI environment.)
INTERFACES SUPPORTED
Only the object-oriented interface of CGI.pm is supported through CGI::PSGI. This means you should always create an object with
"CGI::PSGI->new($env)" and should call methods on the object.
The function-based interface like "use CGI ':standard'" does not work with this module.
METHODS
CGI::PSGI adds the following extra methods to CGI.pm:
env
$env = $cgi->env;
Returns the PSGI environment in a hash reference. This allows CGI.pm-based application frameworks such as CGI::Application to access PSGI
extensions, typically set by Plack Middleware components.
So if you enable Plack::Middleware::Session, your application and plugin developers can access the session via:
$cgi->env->{'plack.session'}->get("foo");
Of course this should be coded carefully by checking the existence of "env" method as well as the hash key "plack.session".
psgi_header
my ($status_code, $headers_aref) = $cgi->psgi_header(%args);
Works like CGI.pm's header(), but the return format is modified. It returns an array with the status code and arrayref of header pairs that
PSGI requires.
If your application doesn't use "$cgi->header", you can ignore this method and generate the status code and headers arrayref another way.
psgi_redirect
my ($status_code, $headers_aref) = $cgi->psgi_redirect(%args);
Works like CGI.pm's redirect(), but the return format is modified. It returns an array with the status code and arrayref of header pairs
that PSGI requires.
If your application doesn't use "$cgi->redirect", you can ignore this method and generate the status code and headers arrayref another way.
LIMITATIONS
Do not use CGI::Pretty or something similar in your controller. The module messes up CGI's DIY autoloader and breaks CGI::PSGI (and
potentially other) inheritance.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
Mark Stosberg <mark@summersault.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
CGI, CGI::Emulate::PSGI
perl v5.12.4 2011-08-29 CGI::PSGI(3pm)