# ls -l .profile
-rwxr-x--x 1 root system 815 Jul 06 19:36 .profile
# . /.profile -> this work fine; i mean after this i can get the environment variables values; but this is enalbled only for that session; so everytime i should manullay execute this; instead i want this to be...
The home dir for the root is /.
I don't want to alter the /etc/profile; I just wanted the root session to use values from .profile on every login.
How should I enable this.?
This is what I found for root in /etc/passwd file
root:!:0:0::/:/usr/bin/ksh
How to add the .profile here so that it will execute automatically on login...?
it is /usr/bin/ksh and
also when I run
# . .profile
/usr/bin/ksh: .profile: not found.
Also someone told that I need to add this file in passwd file.. if so where exactly I should add this.
env|pg - list lot of values.. but whatever I set in .profile is missing...
# env|pg
_=/usr/bin/env
MANPATH=/usr/dt/man:/usr/share/man
SESSIONTYPE=dt
DTDATABASESEARCHPATH=//.dt/types,/etc/dt/appconfig/types/%L,/etc/dt/appconfig/types/C,/usr/dt/appconfig/types/%L,/usr/dt/appconfig/types/C...
How to make certain environment variables available for root on startup..?
Though I've the .profile created under the root's home directory ie / , looks like this file has not been used for some reasons.. because when I type echo $VAR, i'm not getting anything... Please advice.
Let me check the /etc/hosts. What should I do to let my host know how to connect to SMTP server.?
Do I need to do anything after changing the sendmail.cf?
Hi,
I'm trying to send email from our solaris server.
I tried the following command
usr/bin/mailx -s " GGGGGGGG " "xxx@abc.com" << EOF
> Sample message
> EOF
sending mail failed giving the following error message
550 5.1.2 xxx@abc.com... Host unknown (Name server: mailhost: host not found)...
Hi
I'm looking for a script that opens a PDF doc and then "Save AS" another document or as the same document and then close this Adobe acrobat.
Pls help.
Thanks
Hi
I've a requirement to delete the local files based on timestamp.
Can someone provide a VBS for the above same.?
Else pls guide me how to do the same.
I also have to find the disk usage; for example, free/used memory size for C or E drives...
Please guide me or provide VBS.
Thanks in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.