LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-14-2003, 11:22 AM   #1
abhay
Member
 
Registered: Oct 2003
Location: New Delhi, India
Distribution: Mandrake 9.1, Redhat 9.0, Slackware 9.1
Posts: 58

Rep: Reputation: 15
start a program at startup.


i am trying to start a program at startup in Slackware 9.1
the problem is that by default this program sends debugging messages continuously. i can execute it fine and leave it in a konsole window as long as i want after logging in but i want it to start at startup.
now here is what i did.

1. i edited rc.local file and added the entry for the program, but when rc.local is executed at boot up the debugging messages start appearing just before X is started. so i don't have either a command line or GDM to login and i m stuck there only.

2. i boot from my 1st Slack CD and removed the part from rc.local. now i try to add it to rc.4 (yes i m using GDM); but if i add the command after executing /usr/bin/gdm, i won't get the program executed as the part ends with "fi" and script won't read after that. while if i add it before executing /usr/bin/gdm then i m back to square one as the situation is similar to rc.local.

any ideas as to how should i go about it?
thanx for reading
 
Old 10-14-2003, 11:55 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
If its a GUI program your trying to make startup in X, you'll need to make it start from your .xinitrc file, etc. You can't start a X program from rc.local or have it startup before you even login to X in runlevel 4 and so on.

More details though will get better responses.
 
Old 10-14-2003, 12:41 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
If you're using KDE with Slack you can start up a program after KDE loads like this: for example abiword..

ln -s /usr/bin/abiword /home/your_username/.kde/Autostart
 
Old 10-14-2003, 02:02 PM   #4
abhay
Member
 
Registered: Oct 2003
Location: New Delhi, India
Distribution: Mandrake 9.1, Redhat 9.0, Slackware 9.1
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Skyline
If you're using KDE with Slack you can start up a program after KDE loads like this: for example abiword..

ln -s /usr/bin/abiword /home/your_username/.kde/Autostart
thanx mate. that works flawlessly
 
  


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
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
How Do I Get A Program to Start at the Machine Startup andy1.52 Linux - Software 1 03-03-2005 10:33 AM
getting a program to startup Cyric Slackware 4 10-23-2004 07:50 AM
start program on startup HTS Programming 2 07-08-2004 01:22 AM
how to make a program start on startup Maver Linux - Software 9 06-13-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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