Full command text with ps on cygwin?
Is there a way to get the full output from ps
on Cygwin?
For instance, none of the following gives me the full wget
shell line, just /usr/bin/wget
:
$ ps -ef | grep wget
Administ 9844 7780 pty1 13:22:57 /usr/bin/wget
Administ 8036 12648 pty0 13:18:15 /usr/bin/wget
Administ 4832 11828 pty2 13:23:42 /usr/bin/wget
$ ps awx | grep wget
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
8036 12648 8036 10060 pty0 197108 13:18:15 /usr/bin/wget
4832 11828 4832 10780 pty2 197108 13:23:42 /usr/bin/wget
$ ps -p 9844 | cat
PID PPID PGID WINPID TTY UID STIME COMMAND
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
cygwin ps
add a comment |
Is there a way to get the full output from ps
on Cygwin?
For instance, none of the following gives me the full wget
shell line, just /usr/bin/wget
:
$ ps -ef | grep wget
Administ 9844 7780 pty1 13:22:57 /usr/bin/wget
Administ 8036 12648 pty0 13:18:15 /usr/bin/wget
Administ 4832 11828 pty2 13:23:42 /usr/bin/wget
$ ps awx | grep wget
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
8036 12648 8036 10060 pty0 197108 13:18:15 /usr/bin/wget
4832 11828 4832 10780 pty2 197108 13:23:42 /usr/bin/wget
$ ps -p 9844 | cat
PID PPID PGID WINPID TTY UID STIME COMMAND
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
cygwin ps
Have you triedps -efl
? This is what I normally use for a long listing in Linux. Or you can use-o
and specify the columns you want to see. I don't know if these options are available in Cygwin.
– AFH
Sep 6 '17 at 10:57
Thanks @AFH: alas, (on Cygwin)ps -efl
gives the same output asps -ef
.
– boardrider
Sep 8 '17 at 9:59
add a comment |
Is there a way to get the full output from ps
on Cygwin?
For instance, none of the following gives me the full wget
shell line, just /usr/bin/wget
:
$ ps -ef | grep wget
Administ 9844 7780 pty1 13:22:57 /usr/bin/wget
Administ 8036 12648 pty0 13:18:15 /usr/bin/wget
Administ 4832 11828 pty2 13:23:42 /usr/bin/wget
$ ps awx | grep wget
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
8036 12648 8036 10060 pty0 197108 13:18:15 /usr/bin/wget
4832 11828 4832 10780 pty2 197108 13:23:42 /usr/bin/wget
$ ps -p 9844 | cat
PID PPID PGID WINPID TTY UID STIME COMMAND
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
cygwin ps
Is there a way to get the full output from ps
on Cygwin?
For instance, none of the following gives me the full wget
shell line, just /usr/bin/wget
:
$ ps -ef | grep wget
Administ 9844 7780 pty1 13:22:57 /usr/bin/wget
Administ 8036 12648 pty0 13:18:15 /usr/bin/wget
Administ 4832 11828 pty2 13:23:42 /usr/bin/wget
$ ps awx | grep wget
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
8036 12648 8036 10060 pty0 197108 13:18:15 /usr/bin/wget
4832 11828 4832 10780 pty2 197108 13:23:42 /usr/bin/wget
$ ps -p 9844 | cat
PID PPID PGID WINPID TTY UID STIME COMMAND
9844 7780 9844 10264 pty1 197108 13:22:57 /usr/bin/wget
cygwin ps
cygwin ps
asked Sep 6 '17 at 10:44
boardriderboardrider
2852719
2852719
Have you triedps -efl
? This is what I normally use for a long listing in Linux. Or you can use-o
and specify the columns you want to see. I don't know if these options are available in Cygwin.
– AFH
Sep 6 '17 at 10:57
Thanks @AFH: alas, (on Cygwin)ps -efl
gives the same output asps -ef
.
– boardrider
Sep 8 '17 at 9:59
add a comment |
Have you triedps -efl
? This is what I normally use for a long listing in Linux. Or you can use-o
and specify the columns you want to see. I don't know if these options are available in Cygwin.
– AFH
Sep 6 '17 at 10:57
Thanks @AFH: alas, (on Cygwin)ps -efl
gives the same output asps -ef
.
– boardrider
Sep 8 '17 at 9:59
Have you tried
ps -efl
? This is what I normally use for a long listing in Linux. Or you can use -o
and specify the columns you want to see. I don't know if these options are available in Cygwin.– AFH
Sep 6 '17 at 10:57
Have you tried
ps -efl
? This is what I normally use for a long listing in Linux. Or you can use -o
and specify the columns you want to see. I don't know if these options are available in Cygwin.– AFH
Sep 6 '17 at 10:57
Thanks @AFH: alas, (on Cygwin)
ps -efl
gives the same output as ps -ef
.– boardrider
Sep 8 '17 at 9:59
Thanks @AFH: alas, (on Cygwin)
ps -efl
gives the same output as ps -ef
.– boardrider
Sep 8 '17 at 9:59
add a comment |
2 Answers
2
active
oldest
votes
As you can see from cygwin ps
manual the command line is not reported.
It is however available under
/proc/process_PID
/cmdline
add a comment |
This prints all Cygwin processes and it's command line, however without spaces:
grep -a "" /proc/*/cmdline
-a tells grep to show content of binary files (cmdline is binary, not text)
"" tell to match to everything. You can replace it to the name of process you are interested
$ grep -a "" /proc/*/cmdline
/proc/10236/cmdline:/usr/bin/mintty-i/Cygwin-Terminal.ico-
/proc/11340/cmdline:-bash
/proc/11672/cmdline:sshslavik@dev.slavikf.local
...
if you want to preserve spaces in command line, do this:
grep -a "" /proc/*/cmdline | xargs -0
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1247844%2ffull-command-text-with-ps-on-cygwin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
As you can see from cygwin ps
manual the command line is not reported.
It is however available under
/proc/process_PID
/cmdline
add a comment |
As you can see from cygwin ps
manual the command line is not reported.
It is however available under
/proc/process_PID
/cmdline
add a comment |
As you can see from cygwin ps
manual the command line is not reported.
It is however available under
/proc/process_PID
/cmdline
As you can see from cygwin ps
manual the command line is not reported.
It is however available under
/proc/process_PID
/cmdline
answered Sep 7 '17 at 10:15
matzerimatzeri
1,282156
1,282156
add a comment |
add a comment |
This prints all Cygwin processes and it's command line, however without spaces:
grep -a "" /proc/*/cmdline
-a tells grep to show content of binary files (cmdline is binary, not text)
"" tell to match to everything. You can replace it to the name of process you are interested
$ grep -a "" /proc/*/cmdline
/proc/10236/cmdline:/usr/bin/mintty-i/Cygwin-Terminal.ico-
/proc/11340/cmdline:-bash
/proc/11672/cmdline:sshslavik@dev.slavikf.local
...
if you want to preserve spaces in command line, do this:
grep -a "" /proc/*/cmdline | xargs -0
add a comment |
This prints all Cygwin processes and it's command line, however without spaces:
grep -a "" /proc/*/cmdline
-a tells grep to show content of binary files (cmdline is binary, not text)
"" tell to match to everything. You can replace it to the name of process you are interested
$ grep -a "" /proc/*/cmdline
/proc/10236/cmdline:/usr/bin/mintty-i/Cygwin-Terminal.ico-
/proc/11340/cmdline:-bash
/proc/11672/cmdline:sshslavik@dev.slavikf.local
...
if you want to preserve spaces in command line, do this:
grep -a "" /proc/*/cmdline | xargs -0
add a comment |
This prints all Cygwin processes and it's command line, however without spaces:
grep -a "" /proc/*/cmdline
-a tells grep to show content of binary files (cmdline is binary, not text)
"" tell to match to everything. You can replace it to the name of process you are interested
$ grep -a "" /proc/*/cmdline
/proc/10236/cmdline:/usr/bin/mintty-i/Cygwin-Terminal.ico-
/proc/11340/cmdline:-bash
/proc/11672/cmdline:sshslavik@dev.slavikf.local
...
if you want to preserve spaces in command line, do this:
grep -a "" /proc/*/cmdline | xargs -0
This prints all Cygwin processes and it's command line, however without spaces:
grep -a "" /proc/*/cmdline
-a tells grep to show content of binary files (cmdline is binary, not text)
"" tell to match to everything. You can replace it to the name of process you are interested
$ grep -a "" /proc/*/cmdline
/proc/10236/cmdline:/usr/bin/mintty-i/Cygwin-Terminal.ico-
/proc/11340/cmdline:-bash
/proc/11672/cmdline:sshslavik@dev.slavikf.local
...
if you want to preserve spaces in command line, do this:
grep -a "" /proc/*/cmdline | xargs -0
answered Jan 3 at 3:08
SlavikSlavik
1313
1313
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1247844%2ffull-command-text-with-ps-on-cygwin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you tried
ps -efl
? This is what I normally use for a long listing in Linux. Or you can use-o
and specify the columns you want to see. I don't know if these options are available in Cygwin.– AFH
Sep 6 '17 at 10:57
Thanks @AFH: alas, (on Cygwin)
ps -efl
gives the same output asps -ef
.– boardrider
Sep 8 '17 at 9:59