# phpman > info > readproctitle

[readproctitle(8)](https://www.chedong.com/phpMan.php/man/readproctitle/8/markdown)            System Manager's Manual           [readproctitle(8)](https://www.chedong.com/phpMan.php/man/readproctitle/8/markdown)

NAME
       readproctitle  -  maintains  an automatically rotated log in memory for
       inspection by [ps(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown).

       readproctitle is available in daemontools 0.75 and above.

SYNOPSIS
       readproctitle L D

DESCRIPTION
       L consists of any number of arguments.  D is one argument consisting of
       at least five dots.

       readproctitle  reads  data into the end of D, shifting D to the left to
       make room. This means that the most recent data is visible to  process-
       listing tools such as [ps(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown).  readproctitle always leaves three dots at
       the left of D.

       For example, if

        readproctitle io errors: ....................

       reads the data

        fatal error xyz
        warning abc

       then its command-line arguments change to

        readproctitle io errors: ... xyz!warning abc!

       with a newline character in place of each !. Process-listing tools typ-
       ically show the newline character as ? or \n.

       readproctitle exits when it reaches the end of input.

       Beware  that  most  implementations of [ps(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown) have small argument-length
       limits. These limits apply to the total length of readproctitle L D.  I
       have not seen a system with a limit below 512 bytes.

SEE ALSO
       [supervise(8)](https://www.chedong.com/phpMan.php/man/supervise/8/markdown),  [svc(8)](https://www.chedong.com/phpMan.php/man/svc/8/markdown),  [svok(8)](https://www.chedong.com/phpMan.php/man/svok/8/markdown),  [svstat(8)](https://www.chedong.com/phpMan.php/man/svstat/8/markdown),  [svscanboot(8)](https://www.chedong.com/phpMan.php/man/svscanboot/8/markdown), [svscan(8)](https://www.chedong.com/phpMan.php/man/svscan/8/markdown),
       [fghack(8)](https://www.chedong.com/phpMan.php/man/fghack/8/markdown), [pgrphack(8)](https://www.chedong.com/phpMan.php/man/pgrphack/8/markdown), [multilog(8)](https://www.chedong.com/phpMan.php/man/multilog/8/markdown), [tai64n(8)](https://www.chedong.com/phpMan.php/man/tai64n/8/markdown),  [tai64nlocal(8)](https://www.chedong.com/phpMan.php/man/tai64nlocal/8/markdown),  setu-
       [idgid(8)](https://www.chedong.com/phpMan.php/man/idgid/8/markdown), [envuidgid(8)](https://www.chedong.com/phpMan.php/man/envuidgid/8/markdown), [envdir(8)](https://www.chedong.com/phpMan.php/man/envdir/8/markdown), [softlimit(8)](https://www.chedong.com/phpMan.php/man/softlimit/8/markdown), [setlock(8)](https://www.chedong.com/phpMan.php/man/setlock/8/markdown), [ps(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown)

        <http://cr.yp.to/daemontools.html>
        <http://cr.yp.to/slashcommand.html>

                                                              [readproctitle(8)](https://www.chedong.com/phpMan.php/man/readproctitle/8/markdown)
