no, it's not. please read the relevant section on the book to get
acquainted with the scheduler.
http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler
On Tuesday, January 12, 2016 at 4:06:31 PM UTC+1, Yebach wrote:
>
> Hello
>
> I tried with sheduller
> In model I created a fi
Hello
I tried with sheduller
In model I created a file called scheduler.py
my code
def runWoshiEngine(scriptId, path, outPath):
import os, sys
import subprocess
count = 0
while ( count < 10 and ( os.path.isfile(outPath))):
count += 1
os.remove(outPath)
time
use anything you like EXCEPT something inside the web environment.
On Tuesday, January 12, 2016 at 2:01:37 PM UTC+1, Yebach wrote:
>
> Using cwdir helped to solve the problem with httpserver.log file. Thank
> you for that
>
> So you suggest using scheduler to start my exe program?
>
> 2016-01-12
Using cwdir helped to solve the problem with httpserver.log file. Thank you
for that
So you suggest using scheduler to start my exe program?
2016-01-12 12:24 GMT+01:00 Niphlod :
> for this and the previous issue, you should be on the path "I won't never
> ever start a process inside a web reques
for this and the previous issue, you should be on the path "I won't never
ever start a process inside a web request".
That being said, subprocess.Popen has cwdir .
On Monday, January 11, 2016 at 8:52:58 PM UTC+1, Yebach wrote:
>
> What do u suggest I use to startthe exe program. It takes
What do u suggest I use to startthe exe program. It takes one parameter
(script id)?
On Jan 11, 2016 8:50 PM, "Niphlod" wrote:
> you can't os.chdir in web2py. first it's not threadsafe. second, you screw
> up all web2py relative imports.
>
> BTW: httpserver.log is put on the same folder web2py.py
you can't os.chdir in web2py. first it's not threadsafe. second, you screw
up all web2py relative imports.
BTW: httpserver.log is put on the same folder web2py.py is, unless you are
using the -f parameter, in which case it sits in that directory, which is
the one containing the "applications" f
7 matches
Mail list logo