Just wanted to add a "me too!" +1, any help would really be
appreciated.
I've already tried every variation of os.spawn, and the new subprocess
module:
subprocess.Popen([cmd, arg1, arg2, ... , argN])
That's supposed to be similar to os.P_NOWAIT, and it does behave
similarly. It sits and waits for the process to exit, and then it
refuses to redirect.
My view has the following pseudo-code shape.
view1(request):
args=['arg1']
os.spawnv(os.P_NOWAIT, executable, (decorated-executable,) +
tuple(args))
return HttpResponseRedirect('http://www.yahoo.com')
This view never redirects properly, and no error messages pop up. If
I replace the os.P_NOWAIT, with a os.P_WAIT ... then the view
redirects properly only after the process has completed as expected.
If anyone out there has any ideas at all as to why this is please
share. Even if you don't know of a work around, just knowing why this
happens would be really handy.
Thanks,
Ray
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---