Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-23-2005, 07:03 PM   #1
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, 08:08 PM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Run the scripts in ~/.bash_profile
Old 10-24-2005, 03:56 AM   #3
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, 04:04 AM   #4
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, 07:41 PM   #5
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

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.


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

All times are GMT -5. The time now is 11:16 PM.

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