output result from grep.
when I run the below and write the result to a file:
ps -ef |grep smon_MYDB
I got the result:
oracle 12689 1 0 Sep05 ? 00:00:09 ora_pmon_MYDB
oracle 22785 22781 0 07:24 ? 00:00:00 grep ora_pmon_MYDB
what command can I use to delete grep ora_pmon_MYDB? Basically, I only want to check if the process is running, I don't want to see the grep command.
|