Mailing List Archive

Support open source code!


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

Re: [tlug] How can I get the full command line options of a currently running process



shouldn't it read

for i in /proc/[0-9]*; do cat $i/cmdline  | tr '\000' ' '; echo; done

at least on rh this seems to work better (i.e., at all)

-mario


----- Original Message -----
From: "Stephen J. Turnbull" <stephen@example.com>
To: <tlug@example.com>
Sent: Wednesday, February 06, 2002 07:32
Subject: Re: [tlug] How can I get the full command line options of a
currently running process


> >>>>> "Darren" == Darren Cook <darrenj@example.com> writes:
>
>     Darren> This is still not ideal as if the command is too long you
>     Darren> still lose the right-hand part. So the proper solution is
>     Darren> to tell ps to wordwrap, but I don't know how/if that is
>     Darren> possible.
>
> for i in /proc/[0-9]*; do cat $i | tr '\000' ' '; echo; done
>
> And for my next trick....
>
> --
> Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
> University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573
JAPAN
>               Don't ask how you can "do" free software business;
>               ask what your business can "do for" free software.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links