Unix Technical Forum

login in script

This is a discussion on login in script within the AIX Operating System forums, part of the Unix Operating Systems category; --> Does anyone have a good script to put in /etc/environments or /etc/profile that will show username logged in and ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:55 AM
capeme
 
Posts: n/a
Default login in script

Does anyone have a good script to put in /etc/environments or
/etc/profile that will show username logged in and path?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:55 AM
c00p
 
Posts: n/a
Default Re: login in script

I assume you mean setting your prompt? just set the PS1 variable.

I do this in my .profile

export PS1='$HOSTNAME $PWD >'
just replace $HOSTNAME w/ $USER & you should have what you want

On Dec 5, 9:18 am, "capeme" <cap...@comcast.net> wrote:
> Does anyone have a good script to put in /etc/environments or
> /etc/profile that will show username logged in and path?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:55 AM
capeme
 
Posts: n/a
Default Re: login in script


capeme wrote:
> Does anyone have a good script to put in /etc/environments or
> /etc/profile that will show username logged in and path?


Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com