I have a problem when executing a shell command. The problem is that I would like to run a command exec('du -sh /var/www/backups/* > backups.log') but I would like to just press “START” and read backups.log later. Right now when I press the button I have to wait until it finishes, so the page waits until the script finishes.
I have a problem when executing a shell command. The problem is that I
Share
Trying launching the process in the background by adding “&” like this: