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) - debian |
setproctitle(3) - netbsd |
pg_field_num(3) - php |
simplexml_import_dom(3) - php |
domdocument.savexml(3) - php |
Similar Topics in the Unix Linux Community |
---|
Script to check status of a PID |
Loop through awk results |
Check if PID exists |
AIX Hardware Migration w/ HACMP...Advice Needed |
When should i use [] or [[]]? |