![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 01:38 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 02:25 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi all,
My newbie question is: where is the "env" file? I can define some settings via .profile (with Korn Shell). However, where is the env file that specifies the default PATH, LANG, DISPLAY, TZ... etc? I am using SPARC/ Solaris 8. Thanks in advance. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
try to read man page of env and environ; this may answer your question.
__________________
:rolleyes: |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Hi,
I have been following the instructions on this topic to search for the env file, so far all env files i have found are executables. I'd like to find the source file so I can take a look into it and figure out the default settings for an environment. I have created a user but not sure if I would need to customize it for this user. However, in the user's .profile, i need to know where the env file is so I can set the ENV variable. I have created this user with ksh as the login shell. I appreciate any suggestions or ideas. Thanks, Rachael |
|
#5
|
||||
|
||||
|
I put my .env file in my home directory, but there's a little more to it.
My .env file defines a bunch of functions and aliases that I want available in all of my interactive shells. On the other hand, I would prefer that my ksh scripts ignore the .env file since they do not need the aliases and it would slow them down. This is a common situation and I use the standard ksh trick to address it: Code:
FILE=$HOME/.env
ENV='${FILE[(_$-=1)+(_=0)-(_$-!=_${-%%*i*}}]}'
export ENV FILE
|
||||
| Google The UNIX and Linux Forums |