Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 04-09-2004, 10:37 PM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
How can I get the computer to boot up and run a program/game w/ bash script or C++?

I'm not sure if this goes under Programming or Linux from Scratch, so I will put it in both. My question: Is there a way to get the computer to boot up, and run a program such as a game (no log in), either with some sort of bash script, or in place of bash, programmed in C++? If there is, how would I accomplish this? The system would need to shut down as soon as the game quit. Plus if the power was to shut off abruptly, the computer would still be able to boot, with no i-node errors. I would not even need to have a good computer because it should (hopefully) be a very stripped down Linux (no GUI). This is for an arcade game I'm programming for fun in C++ and Allegro, and I want to build an upright arcade case to put it in. The game will be a top down flight simulation (I hope that won't stop you from helping ).

Thank You,
J. C.
Old 04-10-2004, 12:23 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How about not cross-posting?

Look at the rules you agreed to.



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 to run one bash script from within another? babag Programming 9 04-28-2005 12:12 AM
How can I get the computer to boot up and run a program/game w/ bash script or C++? DaMan101 Programming 5 04-11-2004 03:22 PM
i want to run a script or program at boot time!! FreakboY Linux - Newbie 9 10-12-2003 08:03 AM
run programs on a remote computer with script, how? cmisip Linux - Networking 5 07-07-2003 01:48 PM
How do I automatically run at boot an X program or script cmisip Linux - General 4 01-05-2003 06:30 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration