03-08-2012
Ok. Then try running as bash -x script_name and tell us the output you get.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies
2. Shell Programming and Scripting
HI im a novice with shell scripts but i need help with a random script I have this folder filled with 500 different file names... I need help creating a script that will take each filename and make a new folder named that filename and then move that file into the newly created folder. Then the... (1 Reply)
Discussion started by: emachala
1 Replies
3. Shell Programming and Scripting
I'm interested in writing a (hopefully) simple Linux Shell Script.
Upon shutdown of the system (or upon reboot), I would like the script to automatically reset any changes made during that session. This includes files saved to the hard disk as well as any configuration changes. I would also like... (6 Replies)
Discussion started by: wilson735
6 Replies
4. Shell Programming and Scripting
Hi,
I have following shell script code :
------------------------------------------------------------------
#!/bin/bash
SCRIPTS_DIR="/scriptsDir1"
# tables login/password
APIL_USER="uname/pswd"
I2_USER="uname/pswd"
# Database
DB="db1"
cd "$SCRIPTS_DIR/scriptsDir2"
sqlplus... (2 Replies)
Discussion started by: Chaitrali
2 Replies
5. Linux
Hi,
I have following shell script code :
------------------------------------------------------------------
#!/bin/bash
SCRIPTS_DIR="/scriptsDir1"
# tables login/password
APIL_USER="uname/pswd"
I2_USER="uname/pswd"
# Database
DB="db1"
cd "$SCRIPTS_DIR/scriptsDir2"
sqlplus... (1 Reply)
Discussion started by: Chaitrali
1 Replies
6. Shell Programming and Scripting
PLEASE HELP!
NEED LINUX SCTIPT
Need to write a bash shell script to show information of employees of a department from a company data set.
The script should accept a project number (1/2/3/10/20/30) and output
* the name of the project
* the name of the manager of the controlling... (1 Reply)
Discussion started by: help123
1 Replies
7. Shell Programming and Scripting
Hi all,
I am trying to make a Nodemanager work in RHEL 5
I got this script from 'oraclemiddleware.wordpress.com', and made appropriate changes to suit my weblogic installation.
I keep getting the error, "line 82: syntax error: unexpected end of file".
I have checked every line to make sure all... (4 Replies)
Discussion started by: chakrv1
4 Replies
8. Homework & Coursework Questions
Hi Guys
I am new to Linux Shell Scripting . Can any one help me with this Task...files are attached for reference
Task 1: write a script to generate a large size report file MX0002_new.XML by using the template MX0001_new.XML. Shell script is recomended, and it can run on Linux without... (2 Replies)
Discussion started by: samy_1811
2 Replies
9. Shell Programming and Scripting
Hello,
Please, how can I complete this script:
Thank you (2 Replies)
Discussion started by: chercheur857
2 Replies
10. UNIX for Dummies Questions & Answers
we need help with the syntax with this shell script,
if you could create this shell script we can donate to a charity etc.
we need to set up a directory called user3
inside directory user3 we need to create the following files :
afile, anyfile, anotherfile, afiletest, bfile. bfiletest, cfile,... (3 Replies)
Discussion started by: cometboy
3 Replies
LEARN ABOUT DEBIAN
plack::middleware::lighttpdscriptnamefix
Plack::Middleware::LighttpdScriptNameFix(3pm) User Contributed Perl Documentation Plack::Middleware::LighttpdScriptNameFix(3pm)
NAME
Plack::Middleware::LighttpdScriptNameFix - fixes wrong SCRIPT_NAME and PATH_INFO that lighttpd sets
SYNOPSIS
# in your app.psgi
use Plack::Builder;
builder {
enable "LighttpdScriptNameFix";
$app;
};
# Or from the command line
plackup -s FCGI -e 'enable "LighttpdScriptNameFix"' /path/to/app.psgi
DESCRIPTION
This middleware fixes wrong "SCRIPT_NAME" and "PATH_INFO" set by lighttpd when you mount your app under the root path ("/"). If you use
lighttpd 1.4.23 or later you can instead enable "fix-root-scriptname" flag inside "fastcgi.server" instead of using this middleware.
CONFIGURATION
script_name
Even with "fix-root-scriptname", lighttpd still sets weird "SCRIPT_NAME" and "PATH_INFO" if you mount your application at "" or
something that ends with "/". Setting "script_name" option tells the middleware how to reconstruct the new correct "SCRIPT_NAME" and
"PATH_INFO".
If you mount the app under "/something/", you should set:
enable "LighttpdScriptNameFix", script_name => "/something";
and when a request for "/something/a/b?param=1" comes, "SCRIPT_NAME" becomes "/something" and "PATH_INFO" becomes "/a/b".
"script_name" option is set to empty by default, which means all the request path is set to "PATH_INFO" and it behaves like your
fastcgi application is mounted in the root path.
AUTHORS
Yury Zavarin
Tatsuhiko Miyagawa
SEE ALSO
Plack::Handler::FCGI <http://github.com/miyagawa/Plack/issues#issue/68> <https://redmine.lighttpd.net/issues/729>
perl v5.14.2 2011-02-27 Plack::Middleware::LighttpdScriptNameFix(3pm)