The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help needed urgently nabmufti Shell Programming and Scripting 11 02-11-2008 08:17 AM
Need help urgently user_prady Shell Programming and Scripting 3 09-03-2007 09:51 PM
NLS_LANG setting in .profile arksjd Shell Programming and Scripting 1 06-22-2007 11:04 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 11:21 AM
Setting LIBPATH in profile durnelln UNIX for Dummies Questions & Answers 7 02-22-2002 12:03 PM

View Poll Results: Rate this Question
excellent 1 100.00%
Good 0 0%
Voters: 1. You may not vote on this poll

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-05-2007
reachtokhan reachtokhan is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 5
Setting Up Profile.......Need Help Urgently

Hi

I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done

$echo $SHELL
/bin/ksh

$pwd
/home/khan

$ls -l .profile
-rwxrwxrwx

$more .profile
set -o vi
export PS1='khan'

$echo $PS1
$

I tried reloging in,but no use.Pls. advise urgently.

Thanks
Khan.A.W
  #2 (permalink)  
Old 11-05-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,794
Code:
printf "%s\n" "set -o vi" "export PS1='khan'">>.bash_profile
  #3 (permalink)  
Old 11-05-2007
reachtokhanat reachtokhanat is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 2
Still Not Wroking

Sir, I am using Korn Shell.Why will i go for .bash_profile then??
However i have added your line of code,but still the same result.Pls. advise urgently.
  #4 (permalink)  
Old 11-05-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,794
Sorry,
you said "RED HAT3" so I assumed bash as default on RedHat.
Is the korn shell your login shell?
If not you have to use .kshrc for such settings.
  #5 (permalink)  
Old 11-05-2007
reachtokhanat reachtokhanat is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 2
Still not working

Still not working.Still my prompt is shown as $.
The excercise done

$more .profile
set -o vi
ENV=".kshrc"

$more .kshrc
export PS1='khan'

When i tried,

$echo $ENV

$

Why is the o/p coming blank.Strange Behaviour.Pls. advise

Thanks Khan
  #6 (permalink)  
Old 11-05-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,794
Could you post the output from the following commands:

Code:
ps -p $$
echo $-
What happens when you type ksh in your current session?
  #7 (permalink)  
Old 11-05-2007
reachtokhan reachtokhan is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 5
Here is the o/p

Here is the o/p that is coming up

$ps -p $$
pid tty time cmd
2445 pts/0 00:00:00 ksh

$echo $-
ims

$ksh
$


Pls. advise.Can you give your yahoo id.so that we can chat on Yahoo messenger.

Thanks
Khan
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0