LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How can I get the computer to boot up and run a program/game w/ bash script or C++? (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-can-i-get-the-computer-to-boot-up-and-run-a-program-game-w-bash-script-or-c-168361/)

DaMan101 04-09-2004 10:37 PM

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.

Tinkster 04-10-2004 12:23 AM

How about not cross-posting?

http://www.linuxquestions.org/questi...hreadid=168360

Look at the rules you agreed to.



Cheers,
Tink


All times are GMT -5. The time now is 06:04 PM.