I am trying to set up my compiler, but when I go to look for
gcc it not found but I get a message
that stayed (/usr/oasys/bin) and when I go into the dir
to set my env the following is type
cp : cannot creat //pref/.environ: no such file or directory
and I input ./setenv PATH=... (3 Replies)
Not sure what has changed in the Unix environment.
The following script which was working is now not working.
#!/usr/bin/ksh
# -----------------------------------------------------------------------------
# File: monitor_db.sh
#
#... (1 Reply)
Hello people,
In shell scripts if some sensitive data is set into the env so that it is available to other scripts called within those scripts -- Are there are security implications ?
-- I believe the scope of those environment variables ends with the execution of the script.
-- I see that... (4 Replies)
A coworker of mine wants to add some environment variables to env file. Please advise how to do it. He couldn't use: more or vi on the file. Thanks. (3 Replies)
Hi there,
How can I change bash to csh when starting a terminal, and set some aliases for csh? I can't find such files like .cshrc in my home directory.
Thanks a lot (1 Reply)
Hi,
I wrote two small scripts to set env variables in a shell.
java_env.csh
#!/bin/csh -fn
setenv JAVA_HOME '/scratch/software/jdk1.5.0_11'
setenv PATH $PATH':'$JAVA_HOME'/bin'
and run it using csh ./java_env.csh
But the env variables are not set. I tried running each line on the... (5 Replies)
Hi,
I have the below script
#------------------------------------------------------------------------------
#Set up environment variables
#------------------------------------------------------------------------------
SCRIPTS_DIR=/remedy/scripts/ServerVolumeBilling... (3 Replies)
I am facing a very strange issue. I have script in ksh with #!/bin/ksh as shebang.
This script has function which sets the env variable before running other functions of the script. by
set_up_env()
{
CONFIG_FILE="/opt/app/tools/deepmarking/latestVersion/script/UploadEnv"
if
then
... (7 Replies)
Hello All.
Good Afternoon.
I need one small help regarding setting of env variables for a particular host by getting it from the DB.
For ex :
1. I am using LOCALHOST.
2. When I run a ./hostset.sh it should pick up the Oracle home details from associated DB and set it.
Please... (1 Reply)
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
LEARN ABOUT DEBIAN
config::pit
Config::Pit(3pm) User Contributed Perl Documentation Config::Pit(3pm)NAME
Config::Pit - Manage settings
SYNOPSIS
use Config::Pit;
my $config = pit_get("example.com", require => {
"username" => "your username on example",
"password" => "your password on example"
});
# if the fields are not set, open setting by $EDITOR
# with YAML-dumped default values (specified at C<require>).
# use $config->{username}, $config->{password}
DESCRIPTION
Config::Pit is account setting management library. This library automates editing settings used in scripts.
Original library is written in Ruby and published as pit gem with management command.
You can install it by rubygems:
$ sudo gem install pit
$ pit set example.com
# open setting of example.com with $EDITOR.
And Config::Pit provides ppit command which is pit command written in Perl.
See:
$ ppit help
FUNCTIONS
Config::Pit::get(setting_name, opts)
Get setting named "setting_name" from current profile.
my $config = Config::Pit::get("example.com");
This is same as below:
my $config = pit_get("example.com");
opts:
require
Specify fields you want as key and hint (description or default value) of the field as value.
my $config = pit_get("example.com", require => {
"username" => "your username on example.com",
"password" => "your password on example.com"
});
"require" specified, module check the required fields all exist in setting. If not exist, open the setting by $EDITOR with merged
setting with current setting.
Config::Pit::set(setting_name, opts)
Set setting named "setting_name" to current profile.
Config::Pit::set("example.com"); #=> will open setting with $EDITOR
opts:
data
Config::Pit::set("example.com", data => {
username => "foobar",
password => "barbaz",
});
When "data" specified, will not open $EDITOR and set the data directly.
config
Config::Pit::set("example.com", config => {
username => "config description or default value",
password => "same as above",
});
Open $EDITOR with merged setting with specified config.
Config::Pit::switch(profile_name);
Switch profile to "profile_name".
Profile is setting set:
$ pit get foobar
# foo bar...
$ pit switch devel
Switch profile to devel
$ pit get foobar
# bar baz
$ pit switch
Switch profile to default
$ pit get foobar
# foo bar...
AUTHOR
cho45 <cho45@lowreal.net>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
<http://lowreal.rubyforge.org/pit/> is pit in Ruby.
bin/ppit is pit command in Perl.
perl v5.10.1 2010-01-14 Config::Pit(3pm)