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:
parent
8ee6c333d5
commit
1048038e64
1 changed files with 1 additions and 1 deletions
|
@ -1094,7 +1094,7 @@ sub get_process_memory {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_other_process_memory {
|
sub get_other_process_memory {
|
||||||
my @procs = `ps -eaxo pid,command`;
|
my @procs = `ps eaxo pid,command`;
|
||||||
map {
|
map {
|
||||||
s/.*PID.*//;
|
s/.*PID.*//;
|
||||||
s/.*mysqld.*//;
|
s/.*mysqld.*//;
|
||||||
|
|
Loading…
Reference in a new issue