Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

linux startup


  • Please log in to reply
2 replies to this topic

#1 bpv_newhacker

bpv_newhacker

  • Members
  • 233 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:southern new jersey
  • Local time:09:46 AM

Posted 15 July 2010 - 11:47 AM

Hi,
We are creating an embedded system that has ubuntu linux, and I need to know if there is a file like DOS autoexec.bat or some other procedure to follow that when we bring linux up, after the power up,initialization process, it will start running our application. I did see something about a .rc file but what I found is outdated. thanks for any help

BC AdBot (Login to Remove)

 


#2 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:06:46 AM

Posted 15 July 2010 - 12:56 PM

Yes there is. The file located at /etc/rc.local is a script which is executed as the very last step of the boot up process. Much like how the autoexec.bat file follows the structure of a DOS batch script, the /etc/rc.local file follows the structure of a Bash script. Just make sure that the very last line of the rc.local file is exit 0.

#3 bpv_newhacker

bpv_newhacker
  • Topic Starter

  • Members
  • 233 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:southern new jersey
  • Local time:09:46 AM

Posted 16 July 2010 - 03:12 AM

Hi,
thank you, I will try it out today.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users