Re: Problems writing to file

2006-03-27 Thread Bernard Lebel
Hello everyone! I seem to have found the problem! In my program, I have print commands. These print commands are turned off only when the noprint command line argument is supplied. When the Linux service launched the program, it was not using the noprint argument. When I started using it,

Problems writing to file

2006-03-21 Thread Bernard Lebel
Hello, I have this strange problem. I have written a program that writes a log to a log file. To start the program (I'm on Linux Fedora Core 3), I used a service. This service runs a bash file, wich in turn runs the Python top program file. Sooner or later the program stops writing to the log

Re: Problems writing to file

2006-03-21 Thread Gary Herron
Bernard Lebel wrote: Hello, I have this strange problem. I have written a program that writes a log to a log file. To start the program (I'm on Linux Fedora Core 3), I used a service. This service runs a bash file, wich in turn runs the Python top program file. Sooner or later the program

Re: Problems writing to file

2006-03-21 Thread Bernard Lebel
Hi Gary, That is actually what I do. Each time the program prints something to the file, it flushes the buffer. I also tried opening and closing the file, same result. I could indeed post the code. That is only a fraction of the program, as the log is managed through the Queue module: def