Page 1 of 1

Anything like autoexec.bat on Linux?

PostPosted: Sat May 26, 2007 9:50 am
by kyensoftware
is there anything like autoexec.bat on Linux?
I am gonna make a distro with GE, and my theory/method/dream is:
#Get a VERY base Open Source System
#Find a thingy like autoexec.bat (that's in dos) in linux
#Make a "run under" OS in GE, and export to linux.
#Make it so, at startup, it will launch the prog.
#(when you want to shutdown, u use "Fallback to Command Line" (Like in the X window system on Puppy Linux!) and type "poweroff" at the prompt, until GE has a "send the TERM and KILL to all processes function (for linux-based OSes!)
Thanx,
Kyen Software

PostPosted: Sat May 26, 2007 12:19 pm
by Joshua Worth
Sorry, there is no autoexec-like file in Linux, since there is no such thing as "drives" (C:, D:). Though, either on KDE or SuSE(I am not sure which one) recognizes files called "install.sh" when you insert a CD.

Damn...

PostPosted: Sat May 26, 2007 1:55 pm
by kyensoftware
Damn...Does any1 no how the system initiates?
Im no Linux (or DOS!) master, if you havent guessed!
EDIT: THERE IS DRIVES! just no letters. besides, u dont need the letters. you have this: /bin/core/os executable
That would be a path to an executable in subfolder "core" from Binary Folder

Re: Damn...

PostPosted: Sun May 27, 2007 2:37 am
by Joshua Worth
kyensoftware wrote:Damn...Does any1 no how the system initiates?
Im no Linux (or DOS!) master, if you havent guessed!
EDIT: THERE IS DRIVES! just no letters. besides, u dont need the letters. you have this: /bin/core/os executable
That would be a path to an executable in subfolder "core" from Binary Folder
Did you notice how I put "drives" in quotes. There is no such thing as autoexec in Linux. Unless you are talking about when the computer is booting up / the user is logging in

PostPosted: Sun May 27, 2007 2:46 am
by Sgt. Sparky
hmm,
to make another program close all you must to is make a variable called ON for both of the systems,
and on the draw actor event of the view actor (for the GE exported Game)
use a code like this,
Code: Select all
FILE*file;
file = fopen("Status", "w+b");
fwrite(&NO, sizeof(NO), 1, file);
fclose(file);

and for the dos window use this on a constant loop,
Code: Select all
FILE*file;
file = fopen("Status", "r+b");
fread(&NO, sizeof(NO), 1, file);
if(NO == 1)exit 1;//or whatever you must use to exit on linux
fclose(file);