It is currently Tue, 17 May 2022 02:59:54 GMT



 
Author Message
 Auto run login script
Here is an easy question . . . I hope it isn't too easy that it angers
people, but I cant find the answer in my Linux5.1 book.

When a user logs in what it the name of the file in their user
directory that automatically runs?

For example, let's say I wanted to launch the PINE mail program each
time I logged in.

TIA,

    -:>Kevin

Sent via Deja.com http://www.**-**.com/
Before you buy.



 Wed, 18 Jun 1902 08:00:00 GMT   
 Auto run login script

~/.profile and/or ~/.bashrc

I think, this depends on the distribution. ~/.profile is the file
which gets called by the login shell and ~/.bashrc gets called by
bash. In SuSE-Linux, if you want a command to be executed on every new
shell, put it in ~/.bashrc because this will also get called by
~/.profile (or something like that...). I'm not shure about that, but
have a look at these two files.

--
Raffael Herzog

raffael.her...@comartis.com
ICQ #67961355



 Wed, 18 Jun 1902 08:00:00 GMT   
 Auto run login script
The default logon script for Red Hat is /etc/profile which sets the login
options for all users.  You can over-ride it with ~/.bash_profile or
~/.bashrc for each user (if you specify it in ~/.bashrc and it doesn't
work, type "source ~/.bashrc" in ~/.bash_profile).
You can also specify PINE as your login shell.  Enter the path to PINE
in /etc/shells and change your login shell to it in /etc/passwd (although,
this is all you can use during your session).  Have fun.  Penguin power!!

--
Posted via CNET Help.com
http://www.help.com/



 Wed, 18 Jun 1902 08:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. Auto run a .profile script at CDE login

2. auto login script

3. TERM auto-login script.

4. How to write auto login script for minicom?

5. Script for auto-login in kermit / minicom

6. auto executing login script?

7. Auto login/logout scripts for term

8. auto login / auto program startup

9. auto programmstart (X ohne login auf auf user-ebene); auto program run (X without login at user level)


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software