[TAG] Recording OpenCourseWare free lectures

Jimmy O'Regan jimregan at o2.ie
Sun Jun 20 20:40:58 MSD 2004


Thomas Adam wrote:

>On Sun, 20 Jun 2004 17:20:55 +0100
>"Jimmy O'Regan" <jimregan at o2.ie> wrote:
>
>  
>
>>I'd update that tip for Mozilla and its tabbed browsing:
>>
>>#!/bin/bash
>>
>>if [ -n "`ps ux|grep 'mozilla'`" ]
>>    
>>
>
>You have a problem there... that'll return also the PID entry (amongst
>other information) for the grep process that just ran also. You can
>filter this out, with grep, such that:
>
>```
>[ -n "`ps aux | grep mozilla | grep -v 'grep mozilla'`" ]
>'''
>  
>
Ah, yes. Good catch.

>For those on GNU/Linux systems, this is perhaps easier:
>
>```
>[ -n "$(pidof mozilla)" ]
>'''
>  
>
This, however, might not work on many systems, as 'mozilla' is usually a 
shell script which launches 'mozilla-bin'




More information about the TAG mailing list