I have an php file named gg.php:
<?php
exec('nohup ~/www/htdocs/w00daffe/gogs/packs/src/github.com/gogits/gogs/gogs web >/dev/null 2>&1 &');
exit();
?>
What i want to do, is that the go script runs even if i quit. This command works fine over ssh and runs even after i exit out of CLI. It should execute that script and it should run after it. I am really confused. I execute it over JQuery with AJAX:
$.get("gg.php");
Thanks in Advance :)
EDIT: It doesnt work, if i delete exit();