Apologies for the beginners question.
I am looking for the relevance to find the process without parameters.
Please see sample output from the ps command - would like dhclient at with process id 13248 to match the relevance (it has no parameters) and not to match for the process with process id 3260 (it has parameters).
[root@myhostname ~]# ps -ef | grep dhc
root 3260 1 0 2017 ? 00:00:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient–eth0.lease -pf /var/run dhclient-eth0.pid -H myhostname eth0
root 11707 11547 0 20:50 pts/0 00:00:00 grep --color=auto dhc
root 13248 1 0 2017 ? 00:00:00 dhclient
[root@myhostname ~]#
This discussion seems related to my question:
Finding command line argument that contains [Finding command line argument that contains]
Adding my attempts ( unsuccessful ) in hope that someone can fix the syntax:
Q: command line arguments of process “dhclient” whose (it as string as trimmed string != “” )
E: This expression contained a character which is not allowed.
Q: command line arguments of process “dhclient” whose (it as string as trimmed string != “” )
E: The operator “string” is not defined.
Q: command line arguments of process “dhclient” whose (it = “” )
E: The operator “equal” is not defined.
Q: command line arguments of process “dhclient” whose (it as string as trimmed string = “” )
E: The operator “string” is not defined.
Q: command line arguments of process “dhclient” whose (value as string = “” )
E: The operator “value” is not defined.
Q: command line arguments of process “dhclient” whose (it as string = “” )
E: The operator “string” is not defined.
Thank you,
Aleksandr