datetime - Change Linux Time to trick System Uptime -


i'm trying test software out, , need have server uptime @ 100 days. current server uptime 3 hours. changed system time using following command

date -s "27 feb 2015 12:00:00" 

and used date command verify time had changed:

fri feb 27 12:08:40 cdt 2015 

but when type uptime still shows

 12:00:51  3:45,  1 user,  load average: 0.03, 0.06, 0.05 

is there way uptime change other wait until feb of next year?

just backup , replace /usr/bin/uptime own script show 100 days uptime.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -