Re: [PATCH] proc.5: Simplify the example of printing out environ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Kris,

On Tue, Mar 26, 2013 at 11:11 AM, Krzysztof Konopko
<krzysztof.konopko@xxxxxxxxx> wrote:
> The `binutils' package contains a very handy utility to
> print out null-byte delimited strings from a file.  This
> can replace a rather complex expression with `cat'
> provided as an example for printing out
> `/proc/[pid]/environ'.

Thanks. Applied.

Cheers,

Michael


> ---
>  man5/proc.5 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man5/proc.5 b/man5/proc.5
> index 22b7cd0..8688a40 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -182,7 +182,7 @@ Thus, to print out the environment of process 1, you would do:
>  .nf
>
>  .ft CW
> -.RB "$" " (cat /proc/1/environ; echo) | tr \(aq\e000\(aq \(aq\en\(aq"
> +.RB "$" " strings /proc/1/environ"
>  .fi
>  .ft P
>  .in
> --
> 1.8.1.4
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux