2011-12-20, 14:18(-08), kc123:
[...]
> Could someone please help me figure out why:
> GNU bash, version 3.2.25(1)-release-(x86_64-redhat-linux-gnu)
[...]
Since you're using RedHat Linux, try
ps -o comm= -C crond
--
Stephane
Thanks Bob. Awesome! The matching string example below did the trick.
Bob Proulx wrote:
>
> Mike Frysinger wrote:
>> kc123 wrote:
>> > For example, my script below called crond.sh:
>> > ...
>> > content=`ps auxw | grep [c]rond| awk '{print $11}'`
>> > ...
>> > and output is:
>> > CONTENT: /bin/
On Tue, Dec 20, 2011 at 02:18:16PM -0800, kc123 wrote:
> content=`ps auxw | grep [c]rond| awk '{print $11}'`
http://mywiki.wooledge.org/ProcessManagement
> echo "CONTENT:" $content
http://mywiki.wooledge.org/Quotes
http://mywiki.wooledge.org/Arguments
I would strongly advise that you state what