LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2007, 07:25 AM   #1
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Rep: Reputation: 15
Find the 10days before processes


Hi

I do have commands to see the start time of the processes.

ps -x -o lstart -o %c

How to put this command with 'find'.

Objective is that, i need to find the processes which is started 10days before.

Thanks
 
Old 08-07-2007, 09:47 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Can't You just figure out? The list seems sorted.
 
Old 08-07-2007, 08:53 PM   #3
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Original Poster
Rep: Reputation: 15
Hi

Couldn't it, I want to put that ps with find command..

May i get it...

Thanks
 
Old 08-08-2007, 03:08 AM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Lets brake the problem into pieces?
1. the command that prints out the now-10hr
2. we 'grep' for the 1st line matching the now-10hr
3. we 'tail' or 'head' the reminder from that line.

for the 1. The problem is how one calculates yesterday (current time <10:00 am?
the rest is easy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find abandoned processes, and kill them all? jimmyjiang Red Hat 13 06-17-2008 12:10 PM
How to find old processes ? hinetvenkat Linux - Software 2 06-20-2006 07:27 AM
how can i find orphan processes? thecoolguy Linux - General 2 04-09-2006 01:01 AM
Find processes paraiso Linux - Newbie 9 04-28-2005 03:36 PM
how to find CPU and IO bound processes tuxrhl Linux - General 0 11-22-2003 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration