Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > startup appz HELP???

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-18-2003   #11 (permalink)
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
i cant believe it happened, but i always check the simple stuff first. If you are booting into X (which i would imagine)

ls /etc/rc5.d/ | grep local

make sure it returns

S99local

if it doesnt then do

chkconfig local on
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline  


Reply With Quote
Old 01-18-2003   #12 (permalink)
Just Joined!
 
Join Date: Aug 2002
Posts: 26
Send a message via AIM to smonice
it returns s99local, wtf am i doing wrong here. is there anything i need to put before the command to run the app???? i mean this is exactly what i have and should work.

{#blah blah blah

touch /var/lock/subsys/local

/usr/local/bin/cpudocker}
smonice is offline   Reply With Quote
Old 01-18-2003   #13 (permalink)
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
try adding a

#/bin/sh

line to the top of your S99local script - it should be there by default

(also is there a possibility that the program IS running on startup, but is doign something funny?) remember that S99local is executed before you login into X, so if this is some kind of X app maybe it isn't running the way you want it too...

try adding somethign like

touch /tmp/s99local_script_ran

and after you restart check if the file exists

ls -l /tmp/s99local_script_ran

if you add this the touch line after your cpudocker call and the file shows up in /tmp then the cpudocker program WAS called, it is just not acting the way you want it to.
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 01-18-2003   #14 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Try modifying the line in rc.local to this:
Code:
/bin/sh -c "cpudocker" >/tmp/cpudocker 2>&1
Then see if /tmp/cpudocker contains anything useful.
Dolda2000 is offline   Reply With Quote
Old 01-19-2003   #15 (permalink)
Just Joined!
 
Join Date: Aug 2002
Posts: 26
Send a message via AIM to smonice
ok majorwoo, it did in fact make that file, im using Xwindows if that make a difference in what i am doing. i just want the app to load when i log into the box, cant believe this is such a pain. will the app pop up if i log in as root or does it have to be a different user???

Dolda2000, says command not found in that file, do i need to substitute the bin/sh for where my program is loaded??

thx
smonice is offline   Reply With Quote
Old 01-19-2003   #16 (permalink)
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
no, do this

/bin/sh -c "/path_to_program/cpudocker" >/tmp/cpudocker 2>&1

dolda assumed cpudocker was in your PATH so if your cpudocker program is in /usr/local/ do

/bin/sh -c "/usr/local/cpudocker" >/tmp/cpudocker 2>&1
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 01-19-2003   #17 (permalink)
Just Joined!
 
Join Date: Aug 2002
Posts: 26
Send a message via AIM to smonice
all it says is {cpudocker: cant open display. Sorry......}

what the hell does that mean.....maybe it is trying to start the app when x login boots and not actually when i get logged in....any way to circumvent that....??

thanx again for all your help
smonice is offline   Reply With Quote
Old 01-19-2003   #18 (permalink)
Linux Engineer
 
Join Date: Jan 2003
Location: Lebanon, pa
Posts: 994
It needs an x server running appearently so rc.local won't work in this case. Not sure where you can put the command to execute after you log into x.
genlee is offline   Reply With Quote
Old 01-19-2003   #19 (permalink)
Just Joined!
 
Join Date: Aug 2002
Posts: 26
Send a message via AIM to smonice
ok thanx all and if anyone knows a way to do it, let me know.
smonice is offline   Reply With Quote
Old 01-19-2003   #20 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
If you use GNOME, find Session Preferences in the control panel and add it to the startup list.
Dolda2000 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:17 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2