Hello everybody!
I'm writing this django app that does different (time-consuming) things when requested by the user by calling third-party apps as:
Code:
dosomething > progress & disown
and then, when status is requested, parsing the progress file. I need the disown, as otherwise the system call won't return until the process is ready.
This works beautifully, except for one thing: When "dosomething" is "python script.py", I get the message:
Code:
sh: disown: not found
The script executes all right, but the system call returns only when the script is ready. Google knows nothing about this by the way.
I tried wrapping this into a shell script and disowning that, and I wrote a wrapper in C that only does this one system call and tried disowning the wrapper. And I always get this "disown: not found".
So, any idea what may be happening and how I can disown this python script? Or, failing that, a better idea for doing what I need to do (starting time-consuming third-party apps on the server when requested through a web interface)?
Thanks a lot in advance,
-Wojtek