06-29-2009
I am afraid I didnt get that..
My script is using /bin/sh interpreter and is trying to change .cshrc with the following env vars:
set MY_TOOLBOX=/usr/bin/ttx
set TCL_LIBRARY=${MY_TOOLBOX}/lib
set LD_LIBRARY_PATH=${MY_TOOLBOX}/lib
set path=($path /usr/bin/ttx /usr/bin/ttx/FreeBSD ${GGSN_TOOLBOX}/bin)
It is following csh syntax of env vars (set ENV=soemthing)
My problem is when I source the above modified .cshrc, I get an error that is complaining on the "(" in the path variable..
Am I not following the right syntax for the path variable?
Thank you very much for your patient replies. Much appreciated.
---------- Post updated at 12:47 PM ---------- Previous update was at 12:45 PM ----------
This is because there is already an existing bourne script and I need to add the support to modify the cshrc...
Sorry for double posts..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
This is for 3 os's, AIX, Solaris, and AIX, didnt want to post three seperate times on the same subject, anyways, I want to force the user MQM to su, i.e. not be able to rlogin/telnet to the box as user MQM, only login as there ID(chris for example) and su to MQM, does anyone know how to do this,... (4 Replies)
Discussion started by: csaunders
4 Replies
2. Solaris
Is there a way in solaris 9 to prevent a user to login via ssh, telnet, rlogin, and only be able to su as that user, for example
have DBA joe blow login as jblow, and then su to oracle
BUT
not vice versa
have DBA joe blow login as oralce (6 Replies)
Discussion started by: csaunders
6 Replies
3. Shell Programming and Scripting
Hello friends,
i run two scripts manually & they work.
i run them in cron & they don work.
how to match the two env's
1.command line env
2.cron env
i would like cron to use command line env.
Thanks & Regards
Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies
4. Shell Programming and Scripting
Hello,
<Preamble>
I'm writing an installation script for use with PKGADD. What I want to do is take one of the variables set in the REQUEST script and use that in the install script so I can change applications configuration.
My install script is as follows:
sed '
/^DIRNAME/ i\... (8 Replies)
Discussion started by: Bags
8 Replies
5. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies
6. UNIX for Dummies Questions & Answers
Is there A way I can Force a makefile to ignore errors? i believe it is using gcc.
i have a set of commands in the makefile that i want to run and each time the makefile gets to the point of this commands, it aborts because of the commands.
how can i get the makefile to keep running... (3 Replies)
Discussion started by: SkySmart
3 Replies
7. Shell Programming and Scripting
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies
8. Shell Programming and Scripting
I have a shell script I want to run that will set environment variables based on the value of an input variable submitted when the shell script is called. For example:
$ mgenv.sh prod
This would set environment variables for prod
$ mgenv.sh test
This would set environment variables... (1 Reply)
Discussion started by: brtaylor73
1 Replies
9. Web Development
(Above from Apache docs).
On my system, using:
SetEnvIf User-Agent Mozilla IsBad=1
Order allow,deny
Allow from all
Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies
10. Shell Programming and Scripting
Hia,
echo ${!S*}
gives me all those env vars starting with S like SHELL SECONDS SHELLOPTS SHLVL etc.
is there any way to deflate the shell variables' range like
echo ${!A-E*} OR echo ${!A..S*}
to list all env vars starting within range of A till E. Thanks
Regards,
Nasir (1 Reply)
Discussion started by: busyboy
1 Replies
LEARN ABOUT DEBIAN
plack::handler::cgi
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)