Re: exiting a program without terminating
- Posted by Chris Bensler <bensler at telus.net> Aug 19, 2001
- 403 views
> Linux is a true multi-tasking os. Chances are there are 50 to 100 tasks > running on yours right now. There's no need TSR's. Just run your > program with a '&' following the name, and it will run in the background, > leaving you with an immediate prompt so you can do something else. > example: exu factorial & > returns: > [1] 7643 -- < 1 is the job (for this user) , 7643 is the process number. > > Type fg 1 to bring that job back to the screen. > > A TSR would be little use on Linux (or Windows) since you don't have > access to the hardware. So that rules out things like watching > for a certain keypress in your TSR, and doing something with it. > > > I could probably get away with just setting up an interupt handler, but > > that is just as confusing as TSRs. I've looked at the demos for interupts > > that came with EU, but they weren't too helpful. > > What is it you are trying to do? I'm am trying to devise a mechanism for writing and using dymically included executable (bound) eupohoria files. There is a library in the archives already for creating such a thing, but I'll be damned if I could figure it out. My plan is to have two include files. One is the 'server' which is included in the application and controls any open dynamic lirbraries, and the other is the 'client' which is included in the dynamic library file itself. I have most all of the details worked out except how to load the client into the background, to poll for a calls from the server. This means the method of loading the client into the background, should be the same for either platform. Or at least possible on either. Chris