[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash: finding if mozilla is running



On Saturday 26 July 2003 11:22, David selby wrote:
> Hello,
>
> Writting a small script to make mozilla show the results of HTML code
> written in vi, when vi saves, the script  automaticly changes mozilla to
> show that HTML.
>
> I need to know if mozilla is running, if not I need to call it first ...
> seemed simple

The mozilla remote has a ping command:

mozilla -remote ping()

(you might need to escape the parentheses) returns 0 when Mozilla is running 
and !=0 otherwise. Calling it directly from test usually works fine.

-- 
Got Backup?



Reply to: