--- Sunil S <[EMAIL PROTECTED]> wrote:
> Hi every1,
> If possible could any1 tell me how to
> 1> .. find if there is an instance
> of the application developed in C already running
> i.e check the
> previous instance of the same application within
> that application(written in C)
> 2 > ....find other users in Linux who are using the
> same application within
> the application. There may an application that is
> been run by different
> users. Each time the other user is executing the
> application he should
> get to know that there are x number off other users
> using it. I need the
> API('s) which can be included in the C program and
> not the ps with grep.
>
> Thanking you in advance,
> Sunil S
> _____________________________________________
Somebody suggested using semaphores, which is a good
idea which uses shared memory. Also you can do writes
to a common file with appropriate locking mechanisms
may be less hairy than semaphores :).
-Gaurav
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd