Sponsored Content
Top Forums UNIX for Advanced & Expert Users looking for .profile examples Post 18821 by Kelam_Magnus on Wednesday 3rd of April 2002 11:25:13 AM
Old 04-03-2002
Please post what you have of your .profile, it will help to figure out why.

Here is a sample from one of my boxes.

PATH=/usr/sbin:/usr/localcw/sbin:$PATH:/sbin:
export PATH

Sometimes applications will require to modify the path and have an entry like this.


PATH=$PATH:$USERHOME/bin
export USERHOME

USERHOME contains the user's home directory

So that executable files in the Admin's home directory under sub directory bin will be seen by root's PATH variable.

Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

need examples?

Can someone give me an example of two shells? (1 Reply)
Discussion started by: wmosley2
1 Replies

3. UNIX for Dummies Questions & Answers

SimpleAWK Examples

Can Anyone please give me some simple AWK Examples to clearly understand the usage and syntax of the command. Thanks (2 Replies)
Discussion started by: unxusr123
2 Replies

4. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

5. Shell Programming and Scripting

comprehensive expect examples

Can anybody point me to some useful, comprehensive expect examples? I am trying to build a bash script with some telnet interactions. Appreciate any help. Persio (1 Reply)
Discussion started by: ppucci
1 Replies

6. Emergency UNIX and Linux Support

Awk and Sed examples

Hi all, I tried to understand what this awk and sed does but cudnt understand. Can any body explain what awk and sed means with one simple example each and complex examples each with explanation. Thanks in advance. (7 Replies)
Discussion started by: j_panky
7 Replies

7. UNIX for Advanced & Expert Users

Hard Link Examples

Hello, Please move this if I chose the wrong forum category. This question pertains to Unix and Linux I believe. I google the difference between hard and symbolic/soft links and I understand the difference. What I am trying to find is a real example of a hard link being used in a Operating... (11 Replies)
Discussion started by: jaysunn
11 Replies

8. Shell Programming and Scripting

Is it possible to combine these two PS1 examples?

I need to have the following joined if possible. Any help would be appreciated. 1st PS1 is for current working directory and color in ksh88. PS1=$(printf "\033 2nd PS1 is for the time in ksh88. date '+%H %M %S' | read H M S SECONDS=$((S + 60*(60*H+M))) PS1='${DUMMY:-}... (3 Replies)
Discussion started by: MIBPreacher
3 Replies

9. Programming

Examples, usage, help in C++ program

I have written a C++ program to perform raytracing and would want to write some functions to help the user: examples, usage, help I am wondering how this is done. Would I just put some functions in the main program? (4 Replies)
Discussion started by: kristinu
4 Replies

10. Shell Programming and Scripting

Need lot of examples

Hi, I need a word doc or pdf which contains lots of Shell Programming samples... This is for my open book examination, thanks in advance.. (2 Replies)
Discussion started by: karthikeayan
2 Replies
Jifty::Util(3pm)					User Contributed Perl Documentation					  Jifty::Util(3pm)

NAME
Jifty::Util - Things that don't fit anywhere else DESCRIPTION
absolute_path PATH "absolute_path" converts PATH into an absolute path, relative to the application's root (as determined by "app_root") This can be called as an object or class method. canonicalize_path PATH Takes a "path" style /foo/bar/baz and returns a canonicalized (but not necessarily absolute) version of the path. Always use "/" as the separator, even on platforms which recognizes both "/" and "" as valid separators in PATH. jifty_root Returns the root directory that Jifty has been installed into. Uses %INC to figure out where Jifty.pm is. share_root Returns the 'share' directory of the installed Jifty module. This is currently only used to store the common Mason components, CSS, and JS of Jifty and it's plugins. app_root Returns the application's root path. This is done by returning $ENV{'JIFTY_APP_ROOT'} if it exists. If not, Jifty tries searching upward from the current directory, looking for a directory which contains a "bin/jifty". Failing that, it searches upward from wherever the executable was found. It "die"s if it can only find "/usr" or "/usr/local" which fit these criteria. is_app_root PATH Returns a boolean indicating whether the path passed in is the same path as the app root. Useful if you're recursing up a directory tree and want to stop when you've hit the root. It does not attempt to handle symbolic links. default_app_name Returns the default name of the application. This is the name of the application's root directory, as defined by "app_root". make_path PATH When handed a directory, creates that directory, starting as far up the chain as necessary. (This is what 'mkdir -p' does in your shell). require PATH Uses UNIVERSAL::require to require the provided "PATH". Additionally, logs any failures at the "error" log level. try_to_require Module This method works just like "require", except that it suppresses the error message in cases where the module isn't found. already_required class Helper function to test whether a given class has already been loaded. generate_uuid Generate a new UUID using Data::UUID. reference_to_data Object Provides a saner output format for models than "MyApp::Model::Foo=HASH(0x1800568)". stringify LIST Takes a list of values and forces them into strings. Right now all it does is concatenate them to an empty string, but future versions might be more magical. AUTHOR
Various folks at Best Practical Solutions, LLC. perl v5.14.2 2010-12-08 Jifty::Util(3pm)
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy