[Techtalk] Help!

Maria Blackmore mariab at cats.meow.at
Wed Oct 2 14:12:14 EST 2002


On Wed, 2 Oct 2002, Sasha A Mclaughlin wrote:
> I was having an issue with funtions and scripts.  I was supposed to be
> writing a function to have my PS1 show my pwd everytime I changed
> directories.  I swear, it took 2 hours. 

Everyone has to start somewhere :)

> Also, I before this class I had never written a script.  Everything we do
> is in bash, so if there are any bash gurus out there, I could use your
> help with general scripting questions.  Thank you all for responding to
> my message.  If you've done some scripting and can help me write a script
> to show the processes of the current user, you'd be saving my life.

by default, just "ps" by itself will show all the processes for the
current user.  if not, something like "ps aux | grep $USER" should do the
trick. ($USER is the environment variable showing the current user)

have fun

Maria




More information about the Techtalk mailing list