OK, I have no idea what's going on here. Of course, I do have a theory. I was recently messing around on my machine and I noticed that the start times of processes--as reported by ps--were wrong. I've since run some tests to see what's wrong, but that's just confused me more.
The strange behaviour is this: when I run 'date' the date/time are reported correctly. When I run ps, the start time of processes is 37'6" in the future. Here's some output to clear up what I mean. I just wrote a script that runs 'date' then 'ps a --format lstart cmd' then 'date' again with some 'echo's to spread it out.
The Script
Code:
#!/bin/bash
/bin/echo "";
/bin/date;
/bin/echo "";
/bin/echo "";
/bin/ps a --format "lstart cmd"
/bin/echo "";
/bin/echo "";
/bin/date
/bin/echo "";
The OutputCode:
[root@mt-elbert root]# ./clock_test
Sun Aug 31 01:06:19 MDT 2003
STARTED CMD
Mon Sep 1 13:23:48 2003 -bash
Mon Sep 1 13:25:51 2003 su
Mon Sep 1 13:25:51 2003 bash
Mon Sep 1 14:12:10 2003 /bin/bash ./clock_test
Mon Sep 1 14:12:10 2003 ps a --format lstart cmd
Sun Aug 31 01:06:19 MDT 2003
You can see from the two 'date' commands that very little time elapsed between them, but then the last line of the ps command says that ps was started far in the future. Now, the only theory I can come up with is that the host server has it's time set incorrectly somehow. I believe that UML runs each process as a process on the server, so the start time reported is coming from the host server. That seemed logical until I figured it was 37 hours in the future. Why would the server be 37 hours ahead of my clock?
Has anybody else seen this behaviour? If you runs these commands do you get the same weirdness? I need some help figuring this one out. Thanks.
--James
[/b]