01-29-2008
How are you calling this script?
$ . ./BuildScript.sh
or
$./BuildScript.sh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi i want to write a shell script to set environment variables . But i am not been able to set that for the current shell instead i have to spawn a new shell. Is there a way to set the env variable for the current shell using shell script in bash shell ?
Thnx (2 Replies)
Discussion started by: varun.81
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am using the HP-UX machine of version B.11.23. My bashprofile looks like this :
# @(#)B11.23_LR
# Default user .profile file (/usr/bin/sh initialization).
#! /usr/bin/bash
# Set up the terminal:
if
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H"... (0 Replies)
Discussion started by: swethuanju
0 Replies
3. Shell Programming and Scripting
Hi,
I want to get the value of the env varables using the ksh script. All the env variables are stored in a file.
Eg.
file1
$INPATH
$OUTPATH
myscirpt:
for name in `awk { print $1 } file1`
do
cd $name
done
i'm getting the error like $INPATH not found.
in the same script... (1 Reply)
Discussion started by: vij_krr
1 Replies
4. UNIX for Dummies Questions & Answers
I am newbie on Unix system and seek help for updating env variables. The condition is like this:
On Unix server, I log in as oracle user (this is the super for database on Unix), I type > env
all envirnment variables show up. I saw one variable DBA_LIST contains a few email addreses. I need... (2 Replies)
Discussion started by: duke0001
2 Replies
5. Solaris
What is the difference between ${variable} and $variable when used in a script? (2 Replies)
Discussion started by: orange47
2 Replies
6. Red Hat
i have a file that i need to edit and replace a single value with another. so i have two variables, $oldvalue and $newvalue but below doesn't work:
ed file.txt << EOF
,s/$oldversion/$newversion/g
wq
EOFi presume it's the $ that is the issue since it's actually special to ed. any suggestions?... (1 Reply)
Discussion started by: crimso
1 Replies
7. Shell Programming and Scripting
Hi All,
I have script and it's hardcoded the script ca invoke in user home dir and logs will be redirected to home dir of user.
how to make the same script will be invoke from /usr/bin with out chg the logs and other functions path from /user/homedir .
code is below: pls check how to... (1 Reply)
Discussion started by: saku
1 Replies
8. Shell Programming and Scripting
Hi there,
I need urgent help with a small program that is run via shell script. Unfortunately I only understand the bare basics of shell scripting and can't figure out how to do this.
We have a program that tests the connection between 3 servers. I have a script that lets the program run on... (15 Replies)
Discussion started by: Pherdinand
15 Replies
9. Shell Programming and Scripting
I have perl script and in the first line we are invoking .sh script to set ENV variables.
e..g
eval '. $envfile; exec $PERL -S $0 "$@"'
I want to change some of the env variables while the program is running and I am settging it like this ..
$ENV{ORACLE_HOME}=trim($oraclehome);... (1 Reply)
Discussion started by: talashil
1 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
I have installed oracle in Solaris machine and unable to set the env variable. I tried to put the env variable in .dtprofile file but didn't help. So everytime I login in need to run the command and export the variable. Kindly suggest where I am doing wrong.Pls excuse as I am not too... (2 Replies)
Discussion started by: Rossdba
2 Replies
LEARN ABOUT DEBIAN
env::sanctify
Env::Sanctify(3pm) User Contributed Perl Documentation Env::Sanctify(3pm)
NAME
Env::Sanctify - Lexically scoped sanctification of %ENV
VERSION
version 1.06
SYNOPSIS
my $sanctify = Env::Sanctify->sanctify( sanctify => [ '^POE' ] );
# do some stuff, fork some processes etc.
$sanctify->restore
{
my $sanctify = Env::Sanctify->sanctify( env => { POE_TRACE_DEFAULT => 1 } );
# do some stuff, fork some processes etc.
}
# out of scope, %ENV is back to normal
DESCRIPTION
Env::Sanctify is a module that provides lexically scoped manipulation and sanctification of %ENV.
You can specify that it alter or add additional environment variables or remove existing ones according to a list of matching regexen.
You can then either "restore" the environment back manually or let the object fall out of scope, which automagically restores.
Useful for manipulating the environment that forked processes and sub-processes will inherit.
CONSTRUCTOR
"sanctify"
Creates an Env::Sanctify object. Takes two optional arguments:
'env', a hashref of env vars to add to %ENV;
'sanctify', an arrayref of regex pattern strings to match against current %ENV vars;
Any %ENV var that matches a "sanctify" regex is removed from the resultant %ENV.
METHODs
"restore"
Explicitly restore the previous %ENV. This is called automagically when the object is "DESTROY"ed, for instance, when it goes out of
scope.
AUTHOR
Chris Williams <chris@bingosnet.co.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-14 Env::Sanctify(3pm)