Sponsored Content
Full Discussion: .profile issue with UNIX
Top Forums Shell Programming and Scripting .profile issue with UNIX Post 302773349 by solaris_1977 on Wednesday 27th of February 2013 06:02:29 PM
Old 02-27-2013
I have removed that ksh path. Here is the copy of .profile
Code:
# Set up the terminal:
       if [ "$TERM" = "" ]
       then
           eval ` tset -s -Q -m ':?hp' `
       else
           eval ` tset -s -Q `
       fi
       stty erase "^H" kill "^U" intr "^C" eof "^D"
       stty hupcl ixon ixoff
       tabs
# Set up the search paths:
PATH=$PATH:/opt/bin:/lib:/usr/bin:/usr/sbin:/ccq/apps/sunoneweb/SUNWwbsvr:/usr/platform/sun4u/sbin:/usr/ucb:/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/etc:/lib:/bin:/sbin:/usr/jdk/instances/jdk1.5.0/jre:/ccq/apps/oracle/product/10.2.0/client_1:/opt/IBM/ldap/V6.0/lib:/usr/openwin/bin:/ccq/apps/siebel/siebsrvr/bin:/var/adm:/var/adm/siebel:/ccq/apps/siebel/sweapp/bin
# Set up the shell environment:
        set -u
        trap "echo 'logout'" 0
# Set up the shell variables:
        EDITOR=vi
        export EDITOR
# Set up Oracle Environment:
        ORACLE_HOME=/ccq/apps/oracle/product/10.2.0/client_1
        export ORACLE_HOME
       ORACLE_SID=TCCQ
        export ORACLE_SID
       PATH=$PATH:$ORACLE_HOME/bin
        export PATH
       ORACLE_TERM=xterm
       export ORACLE_TERM
       TNS_ADMIN=$ORACLE_HOME/network/admin
       export TNS_ADMIN
        NLS_LANG=AMERICAN
        export NLS_LANG
        NLS_SORT=BINARY
        export NLS_SORT
        ODBCINI=/ccq/apps/siebel/siebsrvr/sys/.odbc.ini
        export ODBCINI
# Set up Siebel Environment:
        LD_LIBRARY_PATH=/lib:/usr/local/lib:/usr/lib:/ccq/apps/oracle/product/10.2.0/client_1/lib32:/ccq/apps/siebel/siebsrvr/lib:/ccq/apps/siebel/siebsrvr/mgmtagent/lib:/ccq/apps/siebel/sweapp/bin:/ccq/apps/siebfs:/ccq/apps/sunoneweb/SUNWwbsvr
        export LD_LIBRARY_PATH
        SIEBEL_LOG_EVENTS=0
        export SIEBEL_LOG_EVENTS
        SIEBEL_SESSMGR_TRACE=0
        export SIEBEL_SESSMGR_TRACE
        SIEBEL_SISNAPI_TRACE=0
        export SIEBEL_SISNAPI_TRACE
exec bash -o vi
SIEBEL_LOG_EVENTS=4
SIEBEL_SESSMGR_TRACE=4
SIEBEL_SISNAPI_TRACE=4

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What is .profile in unix ?

1. What is .profile in unix ? 2. What are they used for ? (2 Replies)
Discussion started by: guhas
2 Replies

2. UNIX for Dummies Questions & Answers

full path of .profile in unix

need a help, am a newbe in unix how do i locate the full path of the .profile where the environmental variable for a user is set. thanks (6 Replies)
Discussion started by: dba
6 Replies

3. Shell Programming and Scripting

Profile File in Unix

Hi, I have to run a sqr program. In the profile file everything is set. e.g APPLID=personel APPPATH=/${ENVIRONMENT}/${APPPATH} and so on.. SQRDIR=/opt/sqr/bin/syb Still when I'm running this script,its giving error APPLID not set and SQRDIR not set. Any idea,why? TIA (5 Replies)
Discussion started by: autosys_nm
5 Replies

4. Solaris

Profile Issue

when I log into my solaris box, my environment variables are not getting set, and i am getting this error? any ideas? -sh: ORACLE_BASE=/u01/oracle: is not an identifier part of .profile is: export ORACLE_BASE=/u01/oracle export ORACLE_HOME=$ORACLE_BASE/app/products/10.2.0/db_1 ... (6 Replies)
Discussion started by: scorphg
6 Replies

5. Shell Programming and Scripting

Issue about how to add a block into profile?

I have to write a rbac script to add something into a role's profile, this script will be executed for many times, during this script, it will add a block into the profile. if the profile exists, it should check the block has been there, if, just replace it with the latest settings, take an... (0 Replies)
Discussion started by: a2156z
0 Replies

6. UNIX for Dummies Questions & Answers

Profile execution issue

Hi I have a profile execution issue, I log on to a linux machine , then i do sudo to another user as sudo su - <username> , then <username> .profile executes properly but when I type something I loose all environment varaible and my prompt changes to '$' loosing the PS1 value that I have... (1 Reply)
Discussion started by: malavm
1 Replies

7. Solaris

[solved] Jumpstart Profile Issue

I have created profile file for zfs root (flash) on a wanboot server when i try to validate the rules file with check i get following error .. i 'm not sure why i 'm getting this error .. can any one help me on this ? # ./check Validating rules... Validating profile profile... Error in... (0 Replies)
Discussion started by: fugitive
0 Replies

8. UNIX for Dummies Questions & Answers

how to open .profile in Korn UNIX

How to open/view .profile file in Korn Unix. I need the path to .profile as well. Thanks, Kumar (1 Reply)
Discussion started by: vasan2815
1 Replies

9. UNIX for Advanced & Expert Users

Issue Regarding environment/.profile file

Hi All, I have my own .profile file and environment file. To execute some commands I always need to load some module using module command and change my environment files to project environment file (. /some/project/some/path/init.environ).Without changing my environment file to project file,... (2 Replies)
Discussion started by: saps19
2 Replies

10. UNIX for Dummies Questions & Answers

Where to see my .profile file in UNIX?

Hi where to see my .profile file in unix thanks Dharma (2 Replies)
Discussion started by: na.dharma
2 Replies
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)
All times are GMT -4. The time now is 10:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy