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 titleSYNOPSISbool cli_set_process_title (string $title)DESCRIPTIONSets the process title visible in tools such as top and ps. This function is available only in CLI mode.PARAMETERSo $title - The new title.RETURN VALUESReturns TRUE on success or FALSE on failure.ERRORS/EXCEPTIONS An E_WARNING will be generated if the operating system is unsupported.EXAMPLESExample #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 ALSOcli_get_process_title(3), setproctitle(3). PHP Documentation Group CLI_SET_PROCESS_TITLE(3)
Related Man Pages |
---|
setproctitle(3) - netbsd |
simplexml_import_dom(3) - php |
tidy_get_html(3) - php |
domdocument.savexml(3) - php |
setproctitle(3) - suse |
Similar Topics in the Unix Linux Community |
---|
Format each line of the file |
Format CSV file |
Help about identify the SP of my OS (Aix5.3) |
Check if PID exists |
When should i use [] or [[]]? |