![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get date and time for past 1 hour from current date | spch2o | Shell Programming and Scripting | 5 | 08-29-2008 01:32 AM |
| Processing a log file based on date/time input and the date/time on the log file | primp | Shell Programming and Scripting | 4 | 03-16-2008 08:23 AM |
| Date/Time help | ssmiths001 | Shell Programming and Scripting | 5 | 01-27-2006 12:40 AM |
| X Keyboard Extension version mismatch | hiker04 | SUN Solaris | 0 | 09-13-2005 05:51 AM |
| time and date in os X help please | dercarcort | UNIX for Dummies Questions & Answers | 1 | 06-30-2002 05:03 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Interesting date/ps time mismatch
[root@system root]# date;ps -ef|grep confused.
Tue Dec 13 11:11:22 EST 2005 root 12847 12733 0 11:21 pts/83 00:00:00 grep confused. I am really confused on why my ps and my date command are returning different values for the time. Anyone know how to resolve this? Running FC2, if it helps. Last edited by r0sc0; 12-13-2005 at 09:47 AM. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I get
Code:
kcsdev:/home/jmcnama> date;ps -ef|grep confused. Tue Dec 13 09:45:12 MST 2005 jmcnama 1699 20740 1 09:45:12 pts/3 0:00 grep confused. I can't see why this could happen, unless you had multiple CPU's and multiple clocks. I don't get it either. |
|
#3
|
|||
|
|||
|
I have a hyperthreading Intel Xeon CPU, but I dont see how I would have multiple clocks, isnt my problem OS based?
|
|
#4
|
||||
|
||||
|
have you tried rebooting the box? if yes and the problem still occurs --- check the binaries for the date and ps for "corruption" ... you might have had some visitors that came in the night ... good luck!
|
|
#5
|
|||
|
|||
|
Something else I just noticed:
Quote:
|
|
#6
|
||||
|
||||
|
should look at system date ...
|
|
#7
|
||||
|
||||
|
Post the output from the following commands...
env | grep -v COLOR type ps type date date ; date -u date ; perl -e 'print time(), " ", localtime(time()), "\n"' touch fubar ; date ; ls -l fubar { sleep 1000 & } ; ps -fp $! ; ls -l /proc/$! ; kill $! |
||||
| Google The UNIX and Linux Forums |