When I run the ps
command i get a warning saying Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
.
How do i suppress this warning? Is there some system setting that i must do for this. The command that I fire is:
[root@localhost home]# ps -aux | grep "curl -s -o Test"
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 4856 0.0 0.0 4044 672 pts/0 S+ 07:20 0:00 grep curl -s -o Test
[root@localhost home]#
Note that I have to fire the exact same command as above(I cannot change the -aux
to aux
, I cannot redirect STDERR
output). That is why i am looking for some system setting that will suppress the warning.
ps -ef
(POSIX/SysV) orps aux
(BSD). Choose your side. – Stéphane Chazelas Aug 20 '14 at 19:43ps
incorrectly. – Barmar Aug 20 '14 at 20:45