first i created a profile file(my_var.profile) which contains
after that i created shell scripts(my_var.sh) which contains
but when i am executing sh my_var.sh it is showing error that no such file/directory .profile.
Moderator's Comments:
Please use next time code tags for your code and data
Hi,
I m new to Solaris CDE...earlier i was using Windows.
Here is my problem..
i know that whatever the initial settings we need to execute,we can place them in .profile file.
in my home dir (/home/venki),i have following files for that.
.profile
.profile.user
.kshrc
.kshrc.user
... (2 Replies)
Hello All,
I am using a HP-UX machine and I want to update the .profile file so that after login to my userID that will be applicable to my ID also. What I am trying to do is :
In .profile file I am trying to write in /home/userID folder:
export PATH=$PATH:$HOME:.
so that whenever I will... (3 Replies)
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)
Hello
I'm hoping someone may be able to help. I'm absolutely brand new to these shell scripts and have tried to bash bits together from the little learnt but my final script still doesn't work. Sorry if something similar is already posted but couldn't find anything existing close enough to help... (1 Reply)
hello all
i created a login scrip and add it successfully to .profile
now i need to force this .profile to be executed if the user login using xmanager not a normal telnet
best regards
---------- Post updated at 09:05 AM ---------- Previous update was at 03:25 AM ----------
Ant updates ???? (10 Replies)
please help me to execute a simple shell script like
for i in `ls
echo $i
done
. i dont want to create a new sh file to execute it. Can i just type and execute it ? because I always this kind of simple for loops .
Please help .
Thanks (7 Replies)
Hi,
We have a load of users which point to the same basic profile by a link:
.profile -> /export/home/dusers/INIT/dot.profile
I'd like to create a seperate profile for one user -testu12. If I remove the link from his profile will it delete the actual dot.profile file?
I've tried to do a... (4 Replies)
I am new in shell scripting. currently i am using cygwin. My problem is
i created a profile file in my own folder. file name is first.profile in which i gave following values to variable
export a=10
now i am executing this profile file by below command
./.first.profile
it executed... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is what I am supposed to do, word for word from my assignment page:
1. Create/modify and print a... (2 Replies)
Hi
where to see my .profile file in unix
thanks
Dharma (2 Replies)
Discussion started by: na.dharma
2 Replies
LEARN ABOUT OPENSOLARIS
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.11 20 Dec 1992 profile(4)