ps --sort: List process active for more than 24 hours The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsUnderstanding ps elapsed time format for long running processesCapture complete process structure/stackWhy the -u flag doesn't work for ps?Insert a space before the first comma in a csv fileHow to grep the logs for a list of patterns and make a report out of it?Filtering and extracting PIDs as space-separated list from ps using sedProblem with grep -oGet a particular part of text from output of a commandGrep and filter IP from text fileHow to pass PID of one process to another process within the same shell script?
Did the new image of black hole confirm the general theory of relativity?
Does Parliament hold absolute power in the UK?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Sub-subscripts in strings cause different spacings than subscripts
How do spell lists change if the party levels up without taking a long rest?
Sort list of array linked objects by keys and values
My body leaves; my core can stay
60's-70's movie: home appliances revolting against the owners
Huge performance difference of the command find with and without using %M option to show permissions
How to support a colleague who finds meetings extremely tiring?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
Presidential Pardon
US Healthcare consultation for visitors
Would an alien lifeform be able to achieve space travel if lacking in vision?
How to type a long/em dash `—`
Could an empire control the whole planet with today's comunication methods?
Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Is every episode of "Where are my Pants?" identical?
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Is an up-to-date browser secure on an out-of-date OS?
University's motivation for having tenure-track positions
Using dividends to reduce short term capital gains?
should truth entail possible truth
ps --sort: List process active for more than 24 hours
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election ResultsUnderstanding ps elapsed time format for long running processesCapture complete process structure/stackWhy the -u flag doesn't work for ps?Insert a space before the first comma in a csv fileHow to grep the logs for a list of patterns and make a report out of it?Filtering and extracting PIDs as space-separated list from ps using sedProblem with grep -oGet a particular part of text from output of a commandGrep and filter IP from text fileHow to pass PID of one process to another process within the same shell script?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
The command ps -ef | grep frmweb
gives a huge list for me, which I want to filter:
weblogic 687 80703 0 08:58 ? 00:00:03 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2129 80703 0 06:52 ? 00:00:51 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2472 80703 0 06:52 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 4504 80703 0 06:53 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 5513 80703 0 09:24 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12076 80703 0 07:33 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 15078 80703 0 07:35 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 22740 80703 0 10:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24175 80703 0 07:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simasystady
weblogic 24242 80703 0 07:40 ? 00:00:04 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mcskaray
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need to get only the processes which are active for more than 24 hours, from the above set.
I have tried ps -ef --sort
options, but I couldn't get the exact command.
Required output is shown below:
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need the exact command.
text-processing rhel ps
New contributor
add a comment |
The command ps -ef | grep frmweb
gives a huge list for me, which I want to filter:
weblogic 687 80703 0 08:58 ? 00:00:03 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2129 80703 0 06:52 ? 00:00:51 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2472 80703 0 06:52 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 4504 80703 0 06:53 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 5513 80703 0 09:24 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12076 80703 0 07:33 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 15078 80703 0 07:35 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 22740 80703 0 10:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24175 80703 0 07:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simasystady
weblogic 24242 80703 0 07:40 ? 00:00:04 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mcskaray
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need to get only the processes which are active for more than 24 hours, from the above set.
I have tried ps -ef --sort
options, but I couldn't get the exact command.
Required output is shown below:
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need the exact command.
text-processing rhel ps
New contributor
add a comment |
The command ps -ef | grep frmweb
gives a huge list for me, which I want to filter:
weblogic 687 80703 0 08:58 ? 00:00:03 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2129 80703 0 06:52 ? 00:00:51 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2472 80703 0 06:52 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 4504 80703 0 06:53 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 5513 80703 0 09:24 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12076 80703 0 07:33 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 15078 80703 0 07:35 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 22740 80703 0 10:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24175 80703 0 07:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simasystady
weblogic 24242 80703 0 07:40 ? 00:00:04 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mcskaray
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need to get only the processes which are active for more than 24 hours, from the above set.
I have tried ps -ef --sort
options, but I couldn't get the exact command.
Required output is shown below:
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need the exact command.
text-processing rhel ps
New contributor
The command ps -ef | grep frmweb
gives a huge list for me, which I want to filter:
weblogic 687 80703 0 08:58 ? 00:00:03 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2129 80703 0 06:52 ? 00:00:51 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 2472 80703 0 06:52 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 4504 80703 0 06:53 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 5513 80703 0 09:24 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12076 80703 0 07:33 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 15078 80703 0 07:35 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 22740 80703 0 10:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24175 80703 0 07:03 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simasystady
weblogic 24242 80703 0 07:40 ? 00:00:04 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mcskaray
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need to get only the processes which are active for more than 24 hours, from the above set.
I have tried ps -ef --sort
options, but I couldn't get the exact command.
Required output is shown below:
weblogic 2271 80703 0 Apr08 ? 00:00:02 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 3997 80703 0 Apr08 ? 00:00:22 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 7147 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 10787 80703 0 Apr08 ? 00:02:16 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 12857 80703 0 Apr08 ? 00:00:44 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 16500 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 18923 80703 0 Apr08 ? 00:00:01 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 20457 80703 0 Apr08 ? 00:00:20 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,
weblogic 23937 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,simastrosay
weblogic 24468 80703 0 Apr08 ? 00:00:00 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
weblogic 24476 80703 0 Apr08 ? 00:00:17 /opt/weblogic/product/fmw/bin/frmweb webfile=HTTP-0,mmtrosay
I need the exact command.
text-processing rhel ps
text-processing rhel ps
New contributor
New contributor
edited 13 hours ago
Rui F Ribeiro
42k1483142
42k1483142
New contributor
asked Apr 9 at 9:08
raviravi
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can try something like to filter only lines which do not have in column 5 hour:minute (this mean they are older than 24 h)
ps -ef | grep frmweb|awk '$5 !~ ":" print'
As suggested in comment grep can be omitted
ps -ef | awk '/frmweb/ && $5 !~ ":" print'
1
you could also incorporate thegrep
in theawk
, if you wanted:awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
ravi is a new contributor. Be nice, and check out our Code of Conduct.
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%2funix.stackexchange.com%2fquestions%2f511409%2fps-sort-list-process-active-for-more-than-24-hours%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can try something like to filter only lines which do not have in column 5 hour:minute (this mean they are older than 24 h)
ps -ef | grep frmweb|awk '$5 !~ ":" print'
As suggested in comment grep can be omitted
ps -ef | awk '/frmweb/ && $5 !~ ":" print'
1
you could also incorporate thegrep
in theawk
, if you wanted:awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
add a comment |
You can try something like to filter only lines which do not have in column 5 hour:minute (this mean they are older than 24 h)
ps -ef | grep frmweb|awk '$5 !~ ":" print'
As suggested in comment grep can be omitted
ps -ef | awk '/frmweb/ && $5 !~ ":" print'
1
you could also incorporate thegrep
in theawk
, if you wanted:awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
add a comment |
You can try something like to filter only lines which do not have in column 5 hour:minute (this mean they are older than 24 h)
ps -ef | grep frmweb|awk '$5 !~ ":" print'
As suggested in comment grep can be omitted
ps -ef | awk '/frmweb/ && $5 !~ ":" print'
You can try something like to filter only lines which do not have in column 5 hour:minute (this mean they are older than 24 h)
ps -ef | grep frmweb|awk '$5 !~ ":" print'
As suggested in comment grep can be omitted
ps -ef | awk '/frmweb/ && $5 !~ ":" print'
edited Apr 9 at 13:58
answered Apr 9 at 9:29
Romeo NinovRomeo Ninov
7,00732129
7,00732129
1
you could also incorporate thegrep
in theawk
, if you wanted:awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
add a comment |
1
you could also incorporate thegrep
in theawk
, if you wanted:awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
1
1
you could also incorporate the
grep
in the awk
, if you wanted: awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
you could also incorporate the
grep
in the awk
, if you wanted: awk '/frmweb/ && $5 !~ ":" ...
– Jeff Schaller♦
Apr 9 at 13:19
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
This command is giving the output based on the column we are selecting with the pattern. but I needed the process which are more than 24 hrs or 1 day.
– ravi
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
@ravi, i do not get your point
– Romeo Ninov
2 days ago
add a comment |
ravi is a new contributor. Be nice, and check out our Code of Conduct.
ravi is a new contributor. Be nice, and check out our Code of Conduct.
ravi is a new contributor. Be nice, and check out our Code of Conduct.
ravi is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f511409%2fps-sort-list-process-active-for-more-than-24-hours%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