# 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...
Thanks all for your reply.
Hello tsuji, can you give some insight abt forfiles.. I couldn't find in my computer..
I'm not aware of resource kits..
Pls provide more details in this regard.
Thanks
Hi
sometime when user tries to open/save word documents(contains tables and other stuff), the word application crashes and unable to recover. The document is getting corrupted.
Anybody has faced this problem. Pls advice.
Many Thanks
Thanks, Carp.
Asssume this is not a function based index, so if the where clause looks like these shown below, which one will use indexes and which one not.
1. where UPPER(COL4) like UPPER('text%')
2. where COL4 like UPPER('text%')
3. where COL4 = UPPER('text')
4. where UPPER(COL4) = UPPER('text')
Hi
If I use UPPER in my where clause for the indexed column, will it take the index?
I mean..
assume my query is something like this..
select COL1, COL2, COL3 from table1
where UPPER(COL4) like UPPER('text%')
Pls advice. Thx.
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.