10 More Discussions You Might Find Interesting
I am having two individual scripts
Script 1): CGI script - is a simple script which trigger bash script
Script 2): Bash script - is a script which execute which collects file system utilization information from all the Unix servers
If I am executing CGI script manually from command... (2 Replies)
Discussion started by: Naveen.6025
2. Shell Programming and Scripting
I am calling a perl script from shell script.
$ cat mah_appln_bkp_oln.ksh
perl $Com/backup.pl -d dbname --tsm --purgetsmcopies 21 --purgetsmlogs
... (1 Reply)
Discussion started by: ilugopal
3. UNIX for Advanced & Expert Users
I am currently in Afghanistan and do not have access to some of the resources I normally do back in the US. Just accessed this site and it looks promising! Hopefully you will not find my question too much of a waste of your time.
I write mostly Korn Shell and PERL on Solaris systems for the... (2 Replies)
Discussion started by: mseanowen
4. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
5. Shell Programming and Scripting
I have a shell script like this:
$PYTHON MetarDecoder.py < ../data/mtrs/arg1/arg2
And I'm calling it with this in perl:
my $output = `./metar_parse.sh --options`;
It's successful when I put in actual values for arg1 and arg2 in the shell script, but I'd like to pass arguments... (1 Reply)
Discussion started by: civilsurfer
6. Shell Programming and Scripting
ive a perl script, where it has a subroutine clear() in it, and i've one shell script which runs in background, from that shell script i wanted to call subroutine which is in perl script, that's perl script is not module, just simple script.
perl script <test>
#!... (4 Replies)
Discussion started by: asarunkumar
7. Shell Programming and Scripting
How to call a perl script in shell program / shell scripting.
PLS HELP ME (2 Replies)
Discussion started by: hravisankar
8. Shell Programming and Scripting
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
9. Shell Programming and Scripting
Is it possible to call a cgi program which is used to display a pop up message in the else part...On executing the script it directly prints the source code of the pop up screen..
Please if you have any idea,share with us.Thanks.
success250=`grep -c failure... (1 Reply)
Discussion started by: elavv
10. Shell Programming and Scripting
Not sure if this is the right forum to post query regarding perl script.
I have a perl script which internally calls a shell script. My problem is that the shell script should be passed command line arguments.
I call a shell script from perl using:
How do... (3 Replies)
Discussion started by: gurukottur
CGI::Compile(3pm) User Contributed Perl Documentation CGI::Compile(3pm)
CGI::Compile - Compile .cgi scripts to a code reference like ModPerl::Registry
my $sub = CGI::Compile->compile("/path/to/script.cgi");
CGI::Compile is an utility to compile CGI scripts into a code reference that can run many times on its own namespace, as long as the script
is ready to run on a persistent environment.
NOTE: for best results, load CGI::Compile before any modules used by your CGIs.
RUN ON PSGI
Combined with CGI::Emulate::PSGI, your CGI script can be turned into a persistent PSGI application like:
my $cgi_script = "/path/to/foo.cgi";
my $sub = CGI::Compile->compile($cgi_script);
my $app = CGI::Emulate::PSGI->handler($sub);
# $app is a PSGI application
If your CGI script has a subroutine that references the lexical scope variable outside the subroutine, you'll see warnings such as:
Variable "$q" is not available at ...
Variable "$counter" will not stay shared at ...
This is due to the way this module compiles the whole script into a big "sub". To solve this, you have to update your code to pass around
the lexical variables, or replace "my" with "our". See also <http://perl.apache.org/docs/1.0/guide/porting.html#The_First_Mystery> for more
Tatsuhiko Miyagawa <firstname.lastname@example.org>
Rafael Kitover <email@example.com>
Hans Dieter Pearcey <firstname.lastname@example.org>
COPYRIGHT & LICENSE
Copyright (c) 2009 Tatsuhiko Miyagawa <email@example.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-05-24 CGI::Compile(3pm)