Zsolt Koppany wrote:
>
> Hi,
>
> how is it possible to test whether netscape has been started and it is
> running under UNIX?
> I would like to do the following:
> - if netscape is not running I start it without "-remote openURL"
> - if it is already running I start it "-remote openURL" to display a
> html page.
>
> Does netscape bind a TCP/IP port?
>
> I need a solution only for UNIX.
You can usually use ps and grep to find processes by name. See man grep
for details. Below is an example.
[chrlsim@cantor chrlsim]$ ps | grep - -e netscape
25878 p1 S 95:12 /usr/local/netscape/netscape
Chuck
--
... The times have been,
That, when the brains were out,
the man would die. ... Macbeth
Chuck Simmons [EMAIL PROTECTED]