As soon as I login


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers As soon as I login
# 1  
Old 12-23-2001
As soon as I login

I am a beginer at Unix, and I need some help, i've created a menu which works ok, but i need the menu to be appear as soon as i log in, this would make it more user friendly and quicker to access. Dunno if it is possible but, if u can help please post a reply. Thanx and Merry Christmas to every1. Smilie Smilie Smilie
# 2  
Old 12-23-2001
You didn't mention your environment...

AIX, Linux, HPUX, etc.
ksh, bash, csh, etc.

...so I going to assume you have written a menu shell
script and when you login, you have a ".profile" file in
your home directory. Assuming this, you can simply
call the menu shell script as the very last line in your
.profile file...

$HOME/mymenu

...assuming your shell script is located in your home directory.
# 3  
Old 12-23-2001
Yea, i created my script in the ksh environment. I do have a ".profile" file.

Thanx for ur reply, you know were u said put "$HOME/mymenu", do u mean type "$HOME/" and then the name of the file which my menu is in? and another question do i need to put the dollar sign at the start?
# 4  
Old 12-24-2001
rwb1959, i tried what u said but it didnt work, im probably doin somthing wrong, but i tried it a few times now and it still aint workin. Ill give u a bit more detail:

Im telneting into a university account.
Im workin in ksh
Im using vi editor

Don't know if this helps but, its like this everyone has their own id e.g. /home/then their code goes here
for example mine is /home/bf01/bf01derk
other peoples are different e.g. /home/bf01/bf01geri

do i need to put the whole thing in
i.e $home/bf01/bf01derk/then file name ??????

Plz help Smilie Smilie
# 5  
Old 12-24-2001
"$HOME" (without the quotes) should expand
to your home directory. At the login prompt, you
can type...

echo $HOME

...note the upper case letters. This command should give you...

/home/bf01/bf01derk

...if it does not, let me know what it does expand to. The
dollar sign is always needed when referencing an environment
variable.

In the case of $HOME/mymenu the "mymenu" would be
substituted with your actual script name. Also, I assume
the file permissions on that script are with execution bit set.
Using ls -l you should see somthing like...

-rwxr-xr-x 1 ..... mymenu

...if not, in the directory in which this script is located, do...

chmod 755 mymenu

Also, I'm assuming you can execute your menu script from
the command line by simply typing it's name.

If you're still having problems, it may help to see your ".profile"
file and the actual script.
# 6  
Old 12-24-2001
OOPS! One clarification...

When I said...

"At the login prompt..."

...I should have said...

"At the command line prompt..."

Sorry about that... no coffee yet. Smilie
# 7  
Old 12-24-2001
Im really sorry about this......but it still aint working, i did:

echo $HOME

...note the upper case letters. This command should give you...

/home/bf01/bf01derk

thats worked fine.


I changed the permissions, and typed $HOME/menu as my the last line in my .profile, but it didnt work. I disconected then reconected but still no menu at start.


Probably somthing wrong with my .profile, coz i was messin about with it the other day:


MAIL=/var/mail/${LOGNAME:?}
PS1='$PWD $'
EDITOR=/usr/ksh/vi
SHELL=/bin/ksh
ENV=$home/.kshrc
PATH=$PATH:/usr/bin
export MAIL PS1 EDITOR SHELL ENV PATH
/bin/ksh

"then i usually put '$HOME/menu' here

Dont if u can see anything wrong Smilie Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

First login on KUbuntu 16.04 no SKEL copied with first login LDAPusers

Hello, we have an problem on kubuntu16.04 that when i login with ldap, and it is my first login, nothing is copied from skel. With SSH it is working fine. Can anyone say we how KDE setup an new first userlogin? Tested with SDDM and Lightdm. Thanks a lot! Best Regard darktux ----------... (1 Reply)
Discussion started by: darktux
1 Replies

2. AIX

Not able to login AIX server but able to login thru console.

Hi, i am able to login to AX server thru console but not able to login directly thru server. also the server is not ping-able with other server. filesystem is fine. and OS version is AIX 5.3. please let me know if you need any specific log. thx in advance. Scriptor (2 Replies)
Discussion started by: scriptor
2 Replies

3. UNIX for Advanced & Expert Users

Can adding to a new group be effective in current login environment without re-login?

Hey folks, When a user is added to a new group, the user has to be log out and log in again to make the new group effective. Is there any system command or technique to refresh user group ID update without re-login? I am not talking about to use "login" or "su -l" commands which can only make... (2 Replies)
Discussion started by: hce
2 Replies

4. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

5. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

6. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

7. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

8. Cybersecurity

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both, when... (1 Reply)
Discussion started by: WhotheWhat
1 Replies

9. Web Development

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both,... (2 Replies)
Discussion started by: WhotheWhat
2 Replies
Login or Register to Ask a Question