php man page for cli_set_process_title

Query: cli_set_process_title

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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) - freebsd
simplexml_load_file(3) - php
pg_field_num(3) - php
setproctitle(3) - osx
Similar Topics in the Unix Linux Community
Get pid
Format each line of the file
Help about identify the SP of my OS (Aix5.3)
Loop through awk results
AIX Hardware Migration w/ HACMP...Advice Needed