* [Comm] как узнать PID
@ 2004-12-21 7:07 Igo
2004-12-21 9:19 ` Alexey S. Kuznetsov
0 siblings, 1 reply; 4+ messages in thread
From: Igo @ 2004-12-21 7:07 UTC (permalink / raw)
To: community
Привет всем
Можно ли как нибудь запустить бинарник так что бы сразу узнеть его PID,
что бы потом не делать ps aux|grep xxxxx ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] как узнать PID
2004-12-21 7:07 [Comm] как узнать PID Igo
@ 2004-12-21 9:19 ` Alexey S. Kuznetsov
2004-12-21 9:23 ` Шишков Евгений
0 siblings, 1 reply; 4+ messages in thread
From: Alexey S. Kuznetsov @ 2004-12-21 9:19 UTC (permalink / raw)
To: community
Igo wrote:
> Привет всем
> Можно ли как нибудь запустить бинарник так что бы сразу узнеть его PID,
конечно! [из man bash]
$! Заменяется идентификатором последнего процесса, запущенного в
фоновом (асинхронном) режиме.
короче после запуска приложения скажи echo $! и узнаешь его pid. :-)
Дополнительная инфа: man bash
--
Sincerely,
Alexey S. Kuznetsov
AK2351-RIPE
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] как узнать PID
2004-12-21 9:19 ` Alexey S. Kuznetsov
@ 2004-12-21 9:23 ` Шишков Евгений
2004-12-21 9:33 ` Andrew Fefilov
0 siblings, 1 reply; 4+ messages in thread
From: Шишков Евгений @ 2004-12-21 9:23 UTC (permalink / raw)
To: community
Alexey S. Kuznetsov пишет:
> Igo wrote:
>
>> Привет всем
>> Можно ли как нибудь запустить бинарник так что бы сразу узнеть его PID,
>
>
> конечно! [из man bash]
> $! Заменяется идентификатором последнего процесса, запущенного в
> фоновом (асинхронном) режиме.
>
> короче после запуска приложения скажи echo $! и узнаешь его pid. :-)
>
> Дополнительная инфа: man bash
А вроде ещё можно ps aux|grep mc
В KDE Ctrl+Esc...
--
С уважением,
Шишков Евгений (evgen@tulanews.ru)
ЗАО "СГ "Спасские ворота" ф-л в г.Тула
тел. (0872) 32-56-90
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] как узнать PID
2004-12-21 9:23 ` Шишков Евгений
@ 2004-12-21 9:33 ` Andrew Fefilov
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Fefilov @ 2004-12-21 9:33 UTC (permalink / raw)
To: community
On Tue, Dec 21, 2004 at 12:23:18PM +0300, Шишков Евгений wrote:
> Alexey S. Kuznetsov пишет:
> >Igo wrote:
> >
> >>Привет всем
> >>Можно ли как нибудь запустить бинарник так что бы сразу узнеть его PID,
> >
> >
> >конечно! [из man bash]
> >$! Заменяется идентификатором последнего процесса, запущенного в
> >фоновом (асинхронном) режиме.
> >
> >короче после запуска приложения скажи echo $! и узнаешь его pid. :-)
> >
> >Дополнительная инфа: man bash
>
> А вроде ещё можно ps aux|grep mc
Внимательно читаем исходное письмо.
--
С уважением,
Фефилов Андрей.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-21 9:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-21 7:07 [Comm] как узнать PID Igo
2004-12-21 9:19 ` Alexey S. Kuznetsov
2004-12-21 9:23 ` Шишков Евгений
2004-12-21 9:33 ` Andrew Fefilov
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