Avoid bad syntax error message

Error below when executing the script on RHEL6/OL6:
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
This commit is contained in:
smutel 2016-05-19 17:06:12 +02:00
parent 8ee6c333d5
commit 1048038e64

View file

@ -1094,7 +1094,7 @@ sub get_process_memory {
}
sub get_other_process_memory {
my @procs = `ps -eaxo pid,command`;
my @procs = `ps eaxo pid,command`;
map {
s/.*PID.*//;
s/.*mysqld.*//;