#!/usr/bin/php -q 'http://localhost/pub/plugins?buffer_length=1', CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket', CURLOPT_POST => 1, CURLOPT_RETURNTRANSFER => true ]); foreach ($messages as $message) { curl_setopt($com, CURLOPT_POSTFIELDS, $message); curl_exec($com); } curl_close($com); } write(_("SSD Trim started").". "._("Please wait")." ...\n"); $trim = popen('fstrim -a -v','r'); while (!feof($trim)) write(fgets($trim)); pclose($trim); write('_DONE_',''); ?>