11-05-2007
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
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I wonder if anyone can help me. I run an application on an AIX 4.3.3 machine, for which I need to set up the LIBPATH environment variable for a specific user. I need this to be set up automatically when the user logs in (via Exceed), so I tried setting this in the .profile file.
... (7 Replies)
Discussion started by: durnelln
7 Replies
2. UNIX for Dummies Questions & Answers
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
3. Shell Programming and Scripting
Hi
In my .Profile file initially I had given
export NLS_LANG="BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
and later I commented it.
When I connect to sqlplus from shell prompt and query
"select * from nls_session_parameters" it gives
PARAMETER VALUE... (1 Reply)
Discussion started by: arksjd
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a SunOS -s 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210 system.
I need to set up my .bash_profile. I need to do the following thins.
1) set up history
2) Set up VI as my editor
3) Display the current directory at the prompt.
I have tried using the set command, the... (1 Reply)
Discussion started by: kaushys
1 Replies
5. UNIX for Dummies Questions & Answers
Hi.
I have a directory structure built with links. For example: /home/user1 is a link to /var/123/user1
can i set the home variable in the .profile of the user to use a link? or it has to be a "real" directory?
tks (1 Reply)
Discussion started by: mrodrig
1 Replies
6. Shell Programming and Scripting
Hi,
I need to append the current system date and time in my file which are being taken a backup by my shell script .so i added the following line in by .profile
SYSDATE="$( date '+%d/%B/%Y/%S' )"
export SYSDATE
But it's a constant one rather then a sync with my system date ,so how can i do... (10 Replies)
Discussion started by: malickhat
10 Replies
7. Shell Programming and Scripting
I need help in settings to Hp-UX , Solaris , AIX-UX ..
I worked on Linux previously ... now i am working on Hp-UX , Solaris , AIX-UX ..
up/down arrow , to see history of previous command (basically to modify ) and few keyboard keys are different ... so i need to set .profile , .cshrc , ... to... (1 Reply)
Discussion started by: girija
1 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
I want to set my properties of my profile to umask 022 by default. I have an idea that i need to make the change in .profile file. Can you please help me, on how would i be able to set it.
Thanks,
Abhishek S. (4 Replies)
Discussion started by: abhisheksunkari
4 Replies
9. UNIX for Dummies Questions & Answers
What's the purpose of setting the profile in side the script?
however the user when logins, the profile wil be set.
Then why we need to use that explicitly inside the script?
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
10. AIX
I have a system with the following settings:
min:0.10
Assigned: 2.0
Max: 6.0
Partition is uncapped weight is 128.
I would like to know if even if this is uncapped, is the max it can use 6?
The actual pool has 16.
I remember reading about this somewhere but I don't remember can anyone... (3 Replies)
Discussion started by: techy1
3 Replies
LEARN ABOUT DEBIAN
env::ps1
Env::PS1(3pm) User Contributed Perl Documentation Env::PS1(3pm)
NAME
Env::PS1 - prompt string formatter
SYNOPSIS
# use the import function
use Env::PS1 qw/$PS1/;
$ENV{PS1} = 'u@h $ ';
print $PS1;
$readline = <STDIN>;
# or tie it yourself
tie $prompt, 'Env::PS1', 'PS1';
# you can also tie a scalar ref
$format = 'u@h$ ';
tie $prompt, 'Env::PS1', $format;
DESCRIPTION
This package supplies variables that are "tied" to environment variables like 'PS1' and 'PS2', if read it takes the contents of the
variable as a format string like the ones bash(1) uses to format the prompt.
It is intended to be used in combination with the various ReadLine packages.
EXPORT
You can request for arbitrary variables to be exported, they will be tied to the environment variables of the same name.
TIE
When you "tie" a variable you can supply one argument which can either be the name of an environement variable or a SCALAR reference. This
argument defaults to 'PS1'.
METHODS
"sprintf($format)"
Returns the formatted string.
Using this method all the time is a lot less efficient then using the tied variable, because the tied variable caches parts of the
format that remain the same anyway.
FORMAT
The format is copied mostly from bash(1) because that's what it is supposed to be compatible with. We made some private extensions which
obviously are not portable.
Note that this is not the prompt format as specified by the posix specification, that would only know "!" for the history number and "!!"
for a literal "!".
Apart from the escape sequences you can also use environment variables in the format string; use $VAR or "${VAR}".
The following escape sequences are recognized:
a The bell character, identical to "