07-18-2001
Take a look into /etc/profile ... thats executed before the user .profile
there can be also some files like .?shrc (depending on the used shell) or .dtprofile/.dtlogin (used of youre login via X) in the home-dir of the user.
10 More Discussions You Might Find Interesting
1. Programming
Pls someone help me. This piece of code is giving me weird results.
ofstream outfile;
ofstream out;
char filename1;
char filename2;
memset(filename1,'\0',sizeof(filename1));
memset(filename2,'\0',sizeof(filename2));
strcpy(filename1,"Testing1.out");... (0 Replies)
Discussion started by: skannan
0 Replies
2. Shell Programming and Scripting
Hi,
I have inserted the following line in my local.login file
setenv ORACLE_HOME /u01/app/oracle/product/8.1.7
Then when I do an echo
$ echo $ORACLE_HOME
I get a blank line. Am I setting up ORACLE_HOME incorrectly?
Thanx (3 Replies)
Discussion started by: nattynatty
3 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. UNIX for Advanced & Expert Users
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)
Discussion started by: duke0001
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I can use rcp to copy a file from unix to window.
How can I get a file from window env in unix.
Ivan (1 Reply)
Discussion started by: egckhad
1 Replies
6. Shell Programming and Scripting
I am running a unix script and calling an env script with in that. but the variables i am exporting in env are not being used by the present script. can any body let me know why? The env file is in the same directory and when i run in devug mode its able to show all the variable values also.
... (1 Reply)
Discussion started by: dsravan
1 Replies
7. Shell Programming and Scripting
Hi,
please help me.. in how to find out which env file is being called upon when an os user logs.
when i su - oracle , i would like to know which env is called, because i see many env files under the home dir..
thanks, (2 Replies)
Discussion started by: jjoy
2 Replies
8. Shell Programming and Scripting
Hi,
I have a small requirement
set -x
`grep IMPACT_HOME=/opt/impact /opt/NETCOOLINST/r.txt | cut -d'=' -f2`
if ;
then
sed 's#IMPACT_HOME=*#d' /opt/NETCOOLINST/r.txt
echo "IMPACT_HOME=" >> /opt/NETCOOLINST/r.txt
sed 's#IMPACT_HOME=*#IMPACT_HOME=/opt/impact#g' /opt/NETCOOLINST/r.txt... (2 Replies)
Discussion started by: dbashyam
2 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. UNIX for Dummies Questions & Answers
Hi,
when I run "env" there are few variable prinitng related to application
$env
SRV=test
NVV=test2
from where this file is invoking, I checked in ./bash_profile and ./profile didn't find the variable.
So what is the file I need to edit this variable. (8 Replies)
Discussion started by: stew
8 Replies
LEARN ABOUT REDHAT
profile
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)