Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-04 23:23, Bo Berglund wrote: > handles the update because we cannot say if cron starts it again while > it is busy measuring. Maybe I would have to think about this race a > bit, a lock file maybe That is easy to solve too... something I have done in practice too. Use the SimpleIPC

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Bo Berglund
On Sun, 4 Oct 2015 12:37:29 +0100, Graeme Geldenhuys wrote: >On 2015-10-03 19:30, Bo Berglund wrote: >> But how could one exchange a running program on the pi from within >> itself? > >On non-Windows platforms it is much easier, because you can normally >replace a program on file, while it is run

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mattias Gaertner
On Sun, 4 Oct 2015 19:17:14 +0100 Graeme Geldenhuys wrote: > On 2015-10-04 19:14, Graeme Geldenhuys wrote: > > I can't remember what it is called, but I can find the name if > > I search for it > > I think it was called "SELinux" - Security-Enhanced Linux. If it would be a security barrier, it

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-04 19:14, Graeme Geldenhuys wrote: > I can't remember what it is called, but I can find the name if > I search for it I think it was called "SELinux" - Security-Enhanced Linux. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.source

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-04 13:57, Michael Van Canneyt wrote: > But I was also surprised to see it. I'm still not sure what the exact cause > is, > because it works sometimes, and sometimes not. That is strange, because I can recompile a running FastCGI app (Wisa project) and get no error in my Linux VM - obv

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread micsch
> But that makes no sense to me. If the OS is designed to potentially remove > running programs (or parts of it) from memory it cannot allow overwriting > the file on disk in any case. When it does so, it cannot remove parts from > memory because it may not be available on disk anymore. So it must

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mark Morgan Lloyd
Jürgen Hestermann wrote: Am 2015-10-04 um 15:41 schrieb Mark Morgan Lloyd: Michael Van Canneyt wrote: On Sun, 4 Oct 2015, Graeme Geldenhuys wrote: On 2015-10-04 13:16, Mattias Gaertner wrote: Replacing a running program by simply copying can result under Linux in 'text file busy'. Then co

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread waldo kitty
On 10/03/2015 05:40 PM, Bo Berglund wrote: On Sat, 3 Oct 2015 15:04:31 -0400, waldo kitty wrote: On 10/03/2015 02:30 PM, Bo Berglund wrote: The program will probably be started by cron every minute to check if it has anything to do and if so execute its data collection task and quit. Otherwis

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Jürgen Hestermann
Am 2015-10-04 um 15:41 schrieb Mark Morgan Lloyd: Michael Van Canneyt wrote: On Sun, 4 Oct 2015, Graeme Geldenhuys wrote: On 2015-10-04 13:16, Mattias Gaertner wrote: Replacing a running program by simply copying can result under Linux in 'text file busy'. Then consider me luckily. :) In

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 4 Oct 2015, Graeme Geldenhuys wrote: On 2015-10-04 13:16, Mattias Gaertner wrote: Replacing a running program by simply copying can result under Linux in 'text file busy'. Then consider me luckily. :) In my 15 years of using Linux and 4 years of FreeBSD I h

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Michael Van Canneyt
On Sun, 4 Oct 2015, Graeme Geldenhuys wrote: On 2015-10-04 13:16, Mattias Gaertner wrote: Replacing a running program by simply copying can result under Linux in 'text file busy'. Then consider me luckily. :) In my 15 years of using Linux and 4 years of FreeBSD I have never seen that error.

Re: [fpc-pascal] fpdoc - "all known implementing classes" section

2015-10-04 Thread Michael Van Canneyt
On Sun, 4 Oct 2015, Graeme Geldenhuys wrote: Hi, Does FPDoc have the functionality to show "All known implementing classes" for an Interface or Class? Something like what JavaDoc does. Here is an example: http://docs.oracle.com/javase/7/docs/api/javax/swing/text/Document.html If not, I'm

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-04 13:16, Mattias Gaertner wrote: > Replacing a running program by simply copying can result under Linux in > 'text file busy'. Then consider me luckily. :) In my 15 years of using Linux and 4 years of FreeBSD I have never seen that error. As an example, while developing I always run m

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mattias Gaertner
On Sun, 4 Oct 2015 12:37:29 +0100 Graeme Geldenhuys wrote: > On 2015-10-03 19:30, Bo Berglund wrote: > > But how could one exchange a running program on the pi from within > > itself? > > On non-Windows platforms it is much easier, because you can normally > replace a program on file, while it i

Re: [fpc-pascal] fpdoc - "all known implementing classes" section

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-04 13:11, Graeme Geldenhuys wrote: > Does FPDoc have the functionality to show "All known implementing > classes" for an Interface or Class? And here is a JavaDoc example of a Class and sub-classes. http://docs.oracle.com/javase/7/docs/api/javax/swing/text/AbstractDocument.html Regar

[fpc-pascal] fpdoc - "all known implementing classes" section

2015-10-04 Thread Graeme Geldenhuys
Hi, Does FPDoc have the functionality to show "All known implementing classes" for an Interface or Class? Something like what JavaDoc does. Here is an example: http://docs.oracle.com/javase/7/docs/api/javax/swing/text/Document.html If not, I'm guess the information is there, it would just be

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Graeme Geldenhuys
On 2015-10-03 19:30, Bo Berglund wrote: > But how could one exchange a running program on the pi from within > itself? On non-Windows platforms it is much easier, because you can normally replace a program on file, while it is running in memory. Windows doesn't allow that. Either way the solution

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mark Morgan Lloyd
waldo kitty wrote: On 10/03/2015 02:30 PM, Bo Berglund wrote: The program will probably be started by cron every minute to check if it has anything to do and if so execute its data collection task and quit. Otherwise just quit, but here maybe also check for an update on the web? But how could on

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Sun, 04 Oct 2015 00:36:09 +0200, Bo Berglund wrote: But if I open a terminal from the menu in the VNC window it shows it is running as root... I have to check with the RPi forum on this VNC problem. I have now found out the reason for the VNC shell running as root and

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Bo Berglund
On Sun, 04 Oct 2015 00:36:09 +0200, Bo Berglund wrote: >But if I open a terminal from the menu in the VNC window it shows it >is running as root... > >I have to check with the RPi forum on this VNC problem. I have now found out the reason for the VNC shell running as root and I have managed to g