Thanks for that clarification.
The files were being created every minute, in concordance with the 
frequence I run the scheduler.
I was able to solve it adding ">/dev/null 2>&1" to the end of the line in 
crontab, so it ended up like this:

* * * * * python /var/www/medios/web2py.py -K webmedios >/dev/null 2>&1

That did the trick, and those files are not created anymore.
Thank you for your help!

Best regards,
Lisandro.


El viernes, 10 de agosto de 2018, 19:52:30 (UTC-3), Dave S escribió:
>
>
>
> On Thursday, August 9, 2018 at 3:56:33 PM UTC-7, Lisandro wrote:
>>
>> I've found that my production server has a lot of files in 
>> /var/spool/postfix/maildrop. 
>> I don't use postfix at all, however that folder is full of files. 
>> All the files follow the same name format, like 
>> this: 2B8431690D, 5712AE68F, 73CF062660, 73C02183A9, 5706512838, 2B7E413705.
>>
>> The file content appears to be encoded, but using nano I can see they all 
>> have something very similar, like this:
>>
>> T^Q1533305867 356761A^Urewrite_context=localF
>> CronDaemonS^EnginxM^@N^]From: "(Cron Daemon)" <nginx>N  To: 
>> nginxN]Subject: Cron <nginx@medios> python /var/www/medios/web2py.py -K 
>> webmedios # web2py schedulerN'Content-Type: text/plain; 
>> charset=UTF-8N^^Auto-Submitted: auto-generatedN^PPrecedence: 
>> bulkN#X-Cron-Env: <XDG_SESSION_ID=112002>N+X-Cron-Env: 
>> <XDG_RUNTIME_DIR=/run/user/998>N^]X-Cron-Env: 
>> <LANG=es_AR.utf8>N^[X-Cron-Env: 
>> <SHELL=/bin/sh>N!X-Cron-Env: <HOME=/var/lib/nginx>N X-Cron-Env: 
>> <PATH=/usr/bin:/bin>N^[X-Cron-Env: <LOGNAME=nginx>N^XX-Cron-Env: 
>> <USER=nginx>N^@N^Tweb2py Web FrameworkN1Created by Massimo Di Pierro, 
>> Copyright 2007-2018N3Version 
>> 2.16.1-stable+timestamp.2017.11.14.05.54.25NGDatabase drivers available: 
>> sqlite3, psycopg2, pg8000, pymysql, imaplibN,starting single-scheduler for 
>> "webmedios"...X^@R^EnginxE^@
>>
>>
>> Notice this line:
>> python /var/www/medios/web2py.py -K webmedios
>>
>>
>> I'm using the system's cron (with the "nginx" user) to run the scheduler, 
>> so I guess these files are being created each time the scheduler is run. 
>> Is there a way to avoid those files being created? Or is it something I 
>> would have to solve at OS level?
>>
>> Thanks in advance!
>>
>
> It looks like it has nothing to do with the scheduler and everything to do 
> with the cron daemon.
> Notice this line:
>
>> From: "(Cron Daemon)" 
>
>
>
> How often are they being created?  The scheduler generally only needs to 
> be started once per boot.
>
> /dps
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to