Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find Process

Status
Not open for further replies.

zoufri75

Technical User
Mar 17, 2002
25
FR
I want to find all the process beginning before one day ?
 

Define 1 Day?

24 hours prior to now?

or

before midnight today?

ps typically displays hase 2 different display lines.

the TIME Processes started if it newer than 24 hours
the Date Processes starts if it older than 24 hours

Time stamps typically have ':' in them. dates don't.

ps -ef | egrep -v ':'

Therefore doing a ps and ignoring lines that have ':' in them are processes started more than 24 hours ago.

now it is possible that there might be a ':' on the line even when it isn't the time portion of the line, but those cases are few and far between.


-----


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top