Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run program automatically while login?

521 views
Skip to first unread message

wilson

unread,
Sep 15, 2004, 9:30:42 PM9/15/04
to
Dear All:

If I want to run a program or command automatically everytime when I
login, how can I do it?
Thanks?

Bit Twister

unread,
Sep 15, 2004, 9:37:31 PM9/15/04
to

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

wilson

unread,
Sep 16, 2004, 3:49:14 AM9/16/04
to
Hi Bit Twister,

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


Bit Twister <BitTw...@localhost.localdomain> wrote in message news:<slrnckhrir.a...@wb.home.invalid>...

Bit Twister

unread,
Sep 16, 2004, 7:55:40 AM9/16/04
to
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.

0 new messages