cli_set_process_title(3) php man page | unix.com

Man Page: cli_set_process_title

Operating Environment: php

Section: 3

CLI_SET_PROCESS_TITLE(3)						 1						  CLI_SET_PROCESS_TITLE(3)

cli_set_process_title - Sets the process title

SYNOPSIS
bool cli_set_process_title (string $title)
DESCRIPTION
Sets the process title visible in tools such as top and ps. This function is available only in CLI mode.
PARAMETERS
o $title - The new title.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS An E_WARNING will be generated if the operating system is unsupported.
EXAMPLES
Example #1 cli_set_process_title(3) example <?php $title = "My Amazing PHP Script"; $pid = getmypid(); // you can use this to see your process title in ps if (!cli_set_process_title($title)) { echo "Unable to set process title for PID $pid... "; exit(1); } else { echo "The process title '$title' for PID $pid has been set for your process! "; sleep(5); } ?>
SEE ALSO
cli_get_process_title(3), setproctitle(3). PHP Documentation Group CLI_SET_PROCESS_TITLE(3)
Related Man Pages
setproctitle(3) - debian
setproctitle(3) - mojave
simplexml_load_file(3) - php
domdocument.savehtmlfile(3) - php
tidy_get_head(3) - php
Similar Topics in the Unix Linux Community
Format CSV file
Help about identify the SP of my OS (Aix5.3)
Loop through awk results
Change putty title name
Delete columns with a specific title XXX, where the position change in each file