I am using apache + django(mod_wsgi) to do some job.
First, I write a simple bash script that will invoke terminal on X window, and executing some command. ex:
DISPLAY=:1 gnome-terminal -e 'sleep 9999' &
If I run this command/script in ssh session, it keep alive even I logout ssh session. However, if I execute this command in django python code. gnome-terminal will run and close immediately because its parent(apache session?) is exited?
How can I run such command(gnome-terminal -e 'cmd') by django + apache without kill it? Thanks a lot.