ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey V Turchin <zerg@altlinux.org>
To: community@altlinux.ru
Subject: Re: [Comm] [JT] Re: send icq
Date: Tue, 12 Oct 2004 19:35:39 +0400
Message-ID: <200410121935.40194.zerg@altlinux.org> (raw)
In-Reply-To: <20041012141524.GA3008@wrars-comp.wrarsdomain>

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

В сообщении от Вторник 12 Октябрь 2004 18:15 Andrey Rahmatullin 
написал(a):
> On Tue, Oct 12, 2004 at 03:30:18PM +0400, Alexey Morsov wrote:
> > Только вот вопрос - как можно из программы на Си прежде чем
> > работать с ней определить есть ли она (запущена ли)?
>
> char running = !system("pidof centericq");
pidof -s centericq
> Думаю, проще не получится.
> pidof возвращает 1, если такой проги нет, и 0, если есть.
Если есть доступ к /proc и никто больше не пользует centericq ;-)

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2004-10-12 15:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11  7:17 [COMM] " Alexey Morsov
2004-10-11  7:20 ` Sasha Martsinuk
2004-10-11  7:49   ` Alexey Morsov
2004-10-11  7:45 ` Andrey Rahmatullin
2004-10-11  8:14   ` Alexey Morsov
2004-10-11 10:24     ` Re[2]: " Maksim Otstavnov
2004-10-11 10:26       ` Alexey Morsov
2004-10-11 10:44         ` Grigory Milev
2004-10-11 10:51           ` Alexey Morsov
2004-10-11 11:06             ` Grigory Milev
2004-10-11 11:13               ` Alexey Morsov
2004-10-12 11:19                 ` [Comm] [JT] " Michael Shigorin
2004-10-12 11:30                   ` Alexey Morsov
2004-10-12 14:15                     ` Andrey Rahmatullin
2004-10-12 15:35                       ` Sergey V Turchin [this message]
2004-10-12 15:51                         ` Andrey Rahmatullin
2004-10-12 16:50                           ` Sergey V Turchin
2004-10-12 17:52                             ` Andrey Rahmatullin
2004-10-16 17:23                         ` [Comm] " Michael Shigorin
2004-10-11  9:27   ` [COMM] " Alexey Morsov
2004-10-15 11:09   ` Alexey Morsov
2004-10-18 11:40     ` Andrey Rahmatullin
2004-10-18 12:23       ` Alexey Morsov
2004-10-23 15:54         ` [Comm] " Michael Shigorin
2004-10-25  6:24           ` Alexey Morsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410121935.40194.zerg@altlinux.org \
    --to=zerg@altlinux.org \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git