ps not working in Linux

Hi guys, Im not a unix expert so this may be a basic question, I'm using this in solaris to get comm for oracle processes:

$ ps -ef -o comm|grep pmon

ora_pmon_XXXX
ora_pmon_YYYY

but when trying in Linux Im getting:

Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ

Ive been looking for workaround but not luck so far, any ideas? :confused:

Tks

After fiddling with it a while I realized the warning means exactly what it says, and getting rid of that dash makes it work. ps ef -o comm

No it is not working, not returning what Im looking for, using:

ps -ef|grep pmon

I got all results like:

oracle 1683 1 0 Mar31 ? 00:00:00 ora_pmon_XXXX
oracle 2609 1 0 Apr03 ? 00:00:01 ora_pmon_YYYY
oracle 2689 1 0 2010 ? 00:03:27 ora_pmon_ZZZZ

so, to get only the last column Im using:

ps -ef -o comm|grep pmon

but not working on linux, not even using:

ps ef -o|grep pmon

not returning results

---------- Post updated at 11:01 AM ---------- Previous update was at 10:57 AM ----------

This is what I was looking for:

ps -eo cmd|grep pmon

Tks!