LinuxQuestions.org
Review your favorite Linux distribution.
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 11-02-2011, 12:26 AM   #1
Pir Ovais
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Rep: Reputation: Disabled
Thumbs up Executing a script at startup


Hi all,

i am a newbie to linux.
I want to execute a shell script each time when any user logs in to system?

Thanks in advance.
 
Old 11-02-2011, 01:15 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Have you tried a google search? or a forum search?

Heres a hint, bashrc...
 
Old 11-02-2011, 01:51 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
If its customisable by the user, try .bash_profile or .bashrc in their home dir.
If its not allowed to be touched by them, try /etc/profile
 
1 members found this post helpful.
Old 11-02-2011, 04:23 AM   #4
Pir Ovais
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks Cris.
It worked perfectly for me.

Stay Blessed.
Thanks
 
  


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
executing startup script on shared server (not as root!) agentspanky Linux - Newbie 3 02-11-2008 02:42 AM
Link in rc5.d is not executing -- is there a startup log? dcroxton Linux - General 2 01-28-2007 10:08 PM
Auto-executing soundcard commands at startup VA3OG Ubuntu 1 11-06-2005 01:25 PM
executing on startup moschi Linux - General 7 09-06-2004 01:49 PM
Executing commands on startup viciousfish Linux - General 5 06-28-2002 03:15 PM


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