On Tue, 18 Jun 2002, Pierre Fortin wrote:

> On Tue, 18 Jun 2002 11:05:55 -0400 (EDT) daRcmaTTeR
> <[EMAIL PROTECTED]> wrote:
> 
> 
> > #####################################
> > # detecting the running process
> > #####################################
> > proc=`ps r|grep <process-name>`  # the "apostrophe" looking character is
> >                              # NOT an apostrophe and is necessary
> >                              # for the entire command with arguments
> >                              # to be loaded into the variable
> 
> Mark,
> 
> This can also be done with just the "ps" command...  Here's an example of
> what I use in my crontab... 
> 
> if [ -z "`/bin/ps --no-headers -j -C program`" ]; then \
> /usr/bin/program; fi
> 
> HTH,
> Pierre
> 
 
Pierre! 

That was absolutely awesome! thank you. :) I hadn't thought of doing it 
that way, i think primarily because I'm not very familiar yet with the 
bash -flags yet. However I see something coming together here.

Richard: can you help me remember again what it is that we're looking for 
here again? I mean, what process is it that we're testing for?
        
                        process == running program /* and can someone
                                                    * please tell me
                                                    * what those little
                                                    * nicks on the tilda
                                                    * key are ( ` )?
                                                    */ 

-- 
daRmaTTeR

R L U: #186492
When ever people annoy me I remember, "Vengence is mine saith the Lord."
My prayer is, "...here am I Lord...send me!"


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to