How to run program automatically while login?

This is a discussion on How to run program automatically while login? within the Linux Administration forums, part of the Linux Forums category; Dear All: If I want to run a program or command automatically everytime when I login, how can I do ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-16-2004
wilson
 
Posts: n/a
Default How to run program automatically while login?

Dear All:

If I want to run a program or command automatically everytime when I
login, how can I do it?
Thanks?
Reply With Quote
  #2 (permalink)  
Old 09-16-2004
Bit Twister
 
Posts: n/a
Default Re: How to run program automatically while login?

On 15 Sep 2004 18:30:42 -0700, wilson wrote:
> Dear All:
>
> If I want to run a program or command automatically everytime when I
> login, how can I do it?


If running the KDE desktop. Create a script to run whatever in
..kde/Autostart and chmod +x your_script_here.


If command line, not gui desktop, call your script from bottom of .bash_profile

Reply With Quote
  #3 (permalink)  
Old 09-16-2004
wilson
 
Posts: n/a
Default Re: How to run program automatically while login?

Hi Bit Twister,

What's the difference if I wrote in .bash_profile or in /etc/rc.local?
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^


Bit Twister <BitTwister@localhost.localdomain> wrote in message news:<slrnckhrir.a6c.BitTwister@wb.home.invalid>.. .
> On 15 Sep 2004 18:30:42 -0700, wilson wrote:
> > Dear All:
> >
> > If I want to run a program or command automatically everytime when I
> > login, how can I do it?

>
> If running the KDE desktop. Create a script to run whatever in
> .kde/Autostart and chmod +x your_script_here.
>
>
> If command line, not gui desktop, call your script from bottom of .bash_profile

Reply With Quote
  #4 (permalink)  
Old 09-16-2004
Bit Twister
 
Posts: n/a
Default Re: How to run program automatically while login?

On 16 Sep 2004 00:49:14 -0700, wilson wrote:
> Hi Bit Twister,
>
> What's the difference if I wrote in .bash_profile or in /etc/rc.local?


You asked for "on login". That is .bash_profile and would run
everytime you logged in.

Had you asked during bootup it would be /etc/rc.local or a startup
script in /etc/init.d with links in the /etc/rc.d/rcX.d directories
and only run during boot up or runlevel changes.

Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0