downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

setthreadtitle> <Proctitle 関数
[edit] Last updated: Fri, 25 May 2012

view this page in

setproctitle

(PECL proctitle >= 0.1.0)

setproctitleプロセスのタイトルを設定

説明

void setproctitle ( string $title )

プロセスのタイトルを設定します。

パラメータ

title

プロセスのタイトルとして使用するタイトル

返り値

値を返しません。

例1 setproctitle() の例

下記の例を実行すると、プロセスのタイトルを変更します。 (例えば、ps a でご覧になれます)

<?php
setproctitle
("myscript");
?>

上の例の出力は、 たとえば以下のようになります。

$ ps a
  PID TTY      STAT   TIME COMMAND
 1168 pts/3    S      0:00 myscript                                                                                                                         

参考



add a note add a note User Contributed Notes setproctitle
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites