On Tue, Mar 18, 2008 at 01:38:11PM +0000, T o n g wrote: > >> $ ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao > >> *write|growisofs.*speed=' > >> > >> $ /bin/sh -c "ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao > >> *write|growisofs.*speed='" > > * * * * * root is_burning || logger get executed. > > I.e., having put the 'ps | grep' part into a shell script, the behavior is > still the same. > > Does it has anything to do with busybox?
I do not know about the busybox question but in general to search whether a process, say cdrdao, is present I would use a regexp that matches the cdrdao command line but _not_ the grep command line itself: <$> ps auwwwwwwwwwwww|grep cdrdao myuser 15160 0.0 0.4 1748 520 pts/27 R+ 16:56 0:00 grep cdrdao <$> ps auwwwwwwwwwwww|grep [c]drdao On the contrary, your regexp match itself, like the first of my two examples above ... -- Chi usa software non libero avvelena anche te. Digli di smettere. Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale. Informatica=bomba: intelligente solo per gli stupidi che ci credono. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]