PureBasic Linux Daemons
PureBasic Linux Daemons
Hi all,
If you use PB under linux you've proably asked you're sellf why can't I make a daemon. The answer is simple PB isn't that far under linux. However, I have good news thanks to my latest bit of genious you can make linux PB daemons. I built a library with FPC(FreePascal Compiler) that enables a compiled PB app to do just that. I have posted a compiled version of the library as well as a PB skeleton to us it.
http://r-t-f-m.com/files/linux/source/p ... montest.pb <-- the PB code
http://r-t-f-m.com/files/linux/source/f ... cpbdlib.so <--- the compiled Lib
Please post any questions,comments, or bug reports here, or better yet e-mail them to iso196@yahoo.com
			
			
									
									
						If you use PB under linux you've proably asked you're sellf why can't I make a daemon. The answer is simple PB isn't that far under linux. However, I have good news thanks to my latest bit of genious you can make linux PB daemons. I built a library with FPC(FreePascal Compiler) that enables a compiled PB app to do just that. I have posted a compiled version of the library as well as a PB skeleton to us it.
http://r-t-f-m.com/files/linux/source/p ... montest.pb <-- the PB code
http://r-t-f-m.com/files/linux/source/f ... cpbdlib.so <--- the compiled Lib
Please post any questions,comments, or bug reports here, or better yet e-mail them to iso196@yahoo.com
One more thing the library source is avail too below is the link.
http://r-t-f-m.com/files/linux/source/f ... pbdlib.pas <-- Library source
			
			
									
									
						http://r-t-f-m.com/files/linux/source/f ... pbdlib.pas <-- Library source
One last little note, the code is public domain, aka whatever you wish to do with it is fine with me. The second you use the code anything and everything that happens as a result of its us e is your responsibility. I give no warrenty what so ever. I just did all this to give back to the PB community. All I can hope for is that you find it useful.
			
			
									
									
						I've started to us the daemon library runtime in other PB, net related of course. So far its working just fine. FYI the library is made with FPC(Free Pascal Compiler). The library should work fine on any linux/unix platform. I'm gonna go as far as saying you can even compile it under win32, but it won't work under win32 for obvious reasons. If anyone has ideas,comments or other things they wish to tell me by all means post them here, or e-mail them ito me, see previous posts for e-mail.
			
			
									
									
						Wroked fine
Yeh forked nicely. Naturally you wont get a win32 fork as such 
Cheers
			
			
									
									
						
Cheers
- 
				dell_jockey
- Enthusiast 
- Posts: 767
- Joined: Sat Jan 24, 2004 6:56 pm
- 
				SkyManager
- Enthusiast 
- Posts: 339
- Joined: Tue Jan 30, 2007 5:47 am
- Location: Hong Kong
These links are broken :
- or -
Does anybody know alternatives to set a daemon thread?
			
			
									
									
						Does anybody have the above files for sharing?http://r-t-f-m.com/files/linux/source/p ... montest.pb <-- the PB code
http://r-t-f-m.com/files/linux/source/f ... cpbdlib.so <--- the compiled Lib
- or -
Does anybody know alternatives to set a daemon thread?



