LinuxQuestions.org
Help answer threads with 0 replies.
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 10-23-2005, 08:03 PM   #1
BigChuckP
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
Have scripts run when you logon


Everytime I logon I would like to run some scripts that I wrote like telling me who is on and such. How would I do this?
Thanks for any replies
 
Old 10-23-2005, 09:08 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Run the scripts in ~/.bash_profile
 
Old 10-24-2005, 04:56 AM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
or if your using kde you could put it in .kde/Autostart
 
Old 10-24-2005, 05:04 AM   #4
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
If you want an accurate answer, then we will need to know
your distribution and kernell
 
Old 10-24-2005, 08:41 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
What's wrong with running them in ~/.bash_profile? That should work across distro without a hassle and I can't see how kernel version can dictate which files are exec'd on login. Different shells will exec different files but bash is extremely common and to be more user friendly, even zsh checks ~/.bash_profile as far as I know so there should be no problem putting them there.
 
  


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
samba logon scripts carnold Linux - Software 1 06-25-2005 09:47 AM
Run program as root at logon? scottjwoodford Linux - Software 7 06-13-2005 05:30 AM
Run script when interent logon AbsoluteMonkey Linux - Networking 6 03-22-2004 04:07 PM
Logon Scripts TheSockMonster Linux - Networking 2 08-07-2002 05:44 PM


All times are GMT -5. The time now is 06:21 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