Sep 18, 2003 #1 zoufri75 Technical User Mar 17, 2002 25 FR I want to find all the process beginning before one day ?
Sep 27, 2003 #2 tdatgod Programmer Jul 21, 2001 601 US 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. ----- Upvote 0 Downvote
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. -----