uhm, maybe it's the default cron on admin that is giving error.
BTW, I'm getting an annoying pyfpdf window every time I start web2py from current trunk.
Fix is easy: when cron lines are defined as *applications/etc or **/applications/etc self.cmd becomes a list already for the intellingent parsing. Michael asked for allowing also custom processes to be run, but they required splitting, so we need to check if self.cmd is yet a list (usual cron lines) or not (custom processes)
@@ -223,8 +223,12 @@
self.shell = shell
def run(self):
+ if isinstance(self.cmd, (list,tuple)):
+ cmd = self.cmd
+ else:
+ cmd = self.cmd.split()
import subprocess
- proc = subprocess.Popen(self.cmd.split(),
+ proc = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,