clean cmd ws code style

This commit is contained in:
fbsanchez 2019-10-24 11:06:03 +02:00
parent 32cb12ca03
commit 276879d8ee
1 changed files with 4 additions and 1 deletions

View File

@ -112,7 +112,10 @@ if (substr($os, 0, 3) !== 'win') {
}
// Kill previous gotty running.
shell_exec('ps aux | grep "'.$config['gotty'].'" | grep -v grep | awk \'{print $2}\' | xargs kill -9 ');
$clean_cmd = 'ps aux | grep "'.$config['gotty'].'"';
$clean_cmd .= '| grep -v grep | awk \'{print $2}\'';
$clean_cmd .= '| xargs kill -9 ';
shell_exec($clean_cmd);
// Common.
$base_cmd = 'nohup "'.$config['gotty'].'" '.$gotty_creds;