LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2015, 11:01 AM   #1
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Rep: Reputation: Disabled
How to run an application after the boot ?


Hi, i know this could seems like a "simple" question but after a lot fo try i can't seems to make it works, i am stuck on this. I am working on a sbc6000x board, linux 2.6.24, an embedded system.

I am working on a pretty nice project which when called like this run perfectly :
Code:
cd /bin
./apps
(/bin/apps don't works, it must be ./apps from the directory)

After searching a little about the startup i learned about rc.local and created it in /etc/init.d, rc.local look like this :

Code:
#!bin/sh
# /etc/rc.d/rc.local: Local system initialization script.
#

cd /bin
./apps
cd
Sadly it seems it is never called. I was thinking about maybe add cd /bin, /.apps to the end of the etc/profile but i don't know if profile can run command aside from simple scripts call.

Does anyone has an idea on why this don't work or on how i could do this ?

Last edited by wowy; 04-10-2015 at 11:04 AM.
 
Old 04-10-2015, 11:04 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
The first question is why doesn't "/bin/apps" work? What happens? Is there an error?

What is this "apps" program? Does it run forever? Does it return? Does the exit status mean anything or do you care?

When you put it in rc.local, how do you know it's never called? Does your rc.local file have execute permissions? Do you see any errors/warnings in the system logs?

Last edited by suicidaleggroll; 04-10-2015 at 11:05 AM.
 
Old 04-10-2015, 11:09 AM   #3
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
The first question is why doesn't "/bin/apps" work? What happens? Is there an error?

What is this "apps" program? Does it run forever? Does it return? Does the exit status mean anything or do you care?

When you put it in rc.local, how do you know it's never called? Does your rc.local file have execute permissions? Do you see any errors/warnings in the system logs?
When using "/bin/apps" i get a "error while loading shared libraries : libstcd++.so.6: cannot open shared object file: No such file or directory". Running it with ./apps generate no error and run.

This apps read an .ini file on a sd card, configure the board with the data from the sd card and then call another program before closing (which works with no issue with ./apps).

I chmod 777 rc.local in order to give it all rights (this is only for a test, later i will restrict it maybe).

Nothing happen, no error message. Maybe rc.local is called but it it doing nothing.
 
Old 04-10-2015, 10:46 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Try running 'ldd /bin/apps'. See if it requires libstcd++.so.6. If so whether it is available.

Else would have to install C++ runtime package available with gcc/g++/libstdc++ pacakage.
 
  


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
run application or boot as specific user vonedaddy Linux - General 3 04-18-2010 10:40 AM
How to run GUI application from userdefined boot time daemon server vikhyat@linux Linux - Software 1 01-19-2010 10:17 AM
How to run GUI application from userdefined boot time daemon server vikhyat@linux Linux - Newbie 1 01-19-2010 10:15 AM
application to run ? johnyy Linux - Software 3 08-28-2003 11:21 AM


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