Anything like autoexec.bat on Linux?

Linux specific questions and discussion

Anything like autoexec.bat on Linux?

Postby kyensoftware » Sat May 26, 2007 9:50 am

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
Games for Windows, Linux, and PPC
Bin dosnt stand for "Binary";
it stands for Bin.
You know, where the junk goes...
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Postby Joshua Worth » Sat May 26, 2007 12:19 pm

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.
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Damn...

Postby kyensoftware » Sat May 26, 2007 1:55 pm

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
Games for Windows, Linux, and PPC
Bin dosnt stand for "Binary";
it stands for Bin.
You know, where the junk goes...
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Re: Damn...

Postby Joshua Worth » Sun May 27, 2007 2:37 am

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
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Sgt. Sparky » Sun May 27, 2007 2:46 am

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);
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron