LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2005, 04:55 PM   #1
Starch
Member
 
Registered: Jan 2005
Posts: 77

Rep: Reputation: 15
execute a script upon logon


Is it possible to execute a script when logging in?

Thanks in advance!
 
Old 05-12-2005, 04:56 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
Yes. place the script in your .bash_profile file, IIRC.
 
Old 05-12-2005, 04:56 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Just add it to your .bash_login file in your users home directory..
 
Old 05-12-2005, 05:04 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
.bash_login? I'm not sure I've ever even heard of that.... guess I need to study bash better.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Shell Script on logon thesystem Debian 2 10-20-2005 12:11 PM
Logon script icedude Linux - Newbie 5 04-19-2005 09:01 AM
Logon Script.... vamsi_samavedam Linux - Distributions 1 05-25-2004 09:46 AM
Run script when interent logon AbsoluteMonkey Linux - Networking 6 03-22-2004 04:07 PM
samba logon script win xp synfield Linux - Networking 3 08-20-2003 11:24 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration