LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2002, 09:01 AM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Autostarting a program upon login...


Mandy SNF, by default, creates 3 users:
root
admin
normal-user.

Root does what you'd expect.
normal-user is likewise (just a normal user).
Admin, however, has some priveledges above normal, but less than root. The most interesting thing I've found, though, is that upon login (either at the computer, or over ssh), a config program starts.

What file needs to be edited to autostart a certain program upon login?

Cheers muchly.
 
Old 02-07-2002, 09:05 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
for it to happen on login it would be the ~/.bashrc

is that what you mean
 
Old 02-07-2002, 09:06 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Original Poster
Rep: Reputation: 64
Yep. What should I add?

exec someprogram

?
 
Old 02-07-2002, 11:05 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yep


but remember entering it like that will start it everytime you login, so if you open an xterm it will start again.


unless you put a script to check and see if it's already running


if it's an x program you could put it in the .xsession script so it only starts when you login to X


Last edited by DavidPhillips; 02-07-2002 at 11:07 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autostarting but from where? evil_empire Fedora 5 03-31-2005 12:51 PM
execute program only once during login tcma Linux - General 6 11-03-2004 08:55 AM
i don't want the login program alaios Linux - General 6 08-10-2004 02:09 PM
How to start program on X login donbellioni Linux - General 11 07-28-2004 04:45 PM
A program not working in one login Sharko Red Hat 2 03-19-2004 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:01 AM.

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
Open Source Consulting | Domain Registration