bash question
Greg Daly
gdaly at u.washington.edu
Tue Aug 22 20:29:07 PDT 2000
Great, thanks..... didnt see that.
just a note - it's squirrely on the positioning of the =' - you cant have
spaces there. :)
-g
----- Original Message -----
From: Mike <mike at boobaz.net>
To: UW Linux Group <linux at u.washington.edu>
Sent: Tuesday, August 22, 2000 8:39 PM
Subject: Re: bash question
| This is a 'man bash' issue. Example:
|
| export PROMPT_COMMAND='export PS1="`date`%"'
|
| ---------------------------
| -=<(| mike at boobaz.net |)>=-
|
| On Tue, 22 Aug 2000, Greg Daly wrote:
|
| |hey all,
| |i was fooling around with my .bash_profile yesterday, and i wrote a
little
| |perl script that takes a random adjective and a random verb to make a
stupid
| |sentence.
| |the problem is that bash sources that script at logon, and for that word
to
| |change, one needs to source the profile again.
| |so, i know this is a stupid program to do it with, but how would one get
| |bash to run a program at every prompt? if you wanted to do something
every
| |prompt (ie check the load on the system), what would be the way to tell
bash
| |to run a program at every prompt?
| |thanks,
| |-greg
| |
| |
|
More information about the Linux
mailing list