Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-13-2003, 05:14 PM
|
#1
|
Member
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210
Rep:
|
uptime
How can i change the uptime in Red Hat 9.0 ?
My machine is on 12 days up and i wanna to change it for more time, something like 50 or more ..
If someone know how can i change it just to type it here... thanx~
|
|
|
08-13-2003, 05:16 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You can't that I know of, its basically pulling this information from your system and when it booted for the first time. Unless you can trick your computer into thinking it booted 50 days ago instead of 12, I really don't see the point in you trying to do this. Why not just let it keep running without a reboot, you'll get there in 38 more days...
|
|
|
08-13-2003, 05:19 PM
|
#3
|
Member
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210
Original Poster
Rep:
|
heh thanx for the post|~
|
|
|
08-13-2003, 05:25 PM
|
#4
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Hell if you want to brag about uptime, edit a screenshot showing something like GKrellm.
|
|
|
08-13-2003, 05:29 PM
|
#5
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by Proud
Hell if you want to brag about uptime, edit a screenshot showing something like GKrellm.
|
Or you can just run the command uptime and post here, then just edit it...
|
|
|
08-13-2003, 05:41 PM
|
#6
|
Member
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243
Rep:
|
Sorry to disagree but i'm sure that /proc/uptime has something to do with it.
|
|
|
08-13-2003, 05:41 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Quote:
Originally posted by trickykid
Or you can just run the command uptime and post here, then just edit it...
|
why would anyone want to do that?
Code:
25:40:15 up 8122 days, 11 min, 0.6 users, goat average: 0.42, -0.35, 23.49
i'm not ashamed to admit this.. why should anyone else?
|
|
|
08-13-2003, 05:47 PM
|
#8
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Code:
04:43:33 up 4.6 Billion Years, 1 user, load average: 0.09, 0.16, 0.07
My machine runs the Earth.. if I reboot, you won't want to know the outcome...
|
|
|
08-13-2003, 06:11 PM
|
#9
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Quote:
My machine runs the Earth.. if I reboot, you won't want to know the outcome...
|
I hope you're using a UPS for all our sakes then
|
|
|
08-13-2003, 06:35 PM
|
#10
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Nope, once the sun goes that's it, no backups for us
|
|
|
08-14-2003, 02:31 AM
|
#11
|
Member
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210
Original Poster
Rep:
|
Heeee and so.... in /proc/uptime what i must type there is 1 empty file named uptime?
|
|
|
08-14-2003, 02:42 AM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Call:
cat /proc/uptime
If you see some numbers, feel free to manipulate them, you might be able to echo something:
echo 10000 > /proc/uptime
And and see if that up's the uptime
Good Luck!
Cool
|
|
|
08-14-2003, 02:44 AM
|
#13
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Nope, it didn't work for me See about adjusting your system clock, maybe that'll bump that uptime to the figures you are looking for. Or, if you'd like you can point them towards my box, currently running a 72/73 day uptime ( www.masterc.no-ip.org/forums at the bottom of the page ) and just tell em it's yours
Cool
|
|
|
08-14-2003, 02:57 AM
|
#14
|
Member
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210
Original Poster
Rep:
|
ahum it doesnt works.... :|
|
|
|
08-14-2003, 03:11 AM
|
#15
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
How about an alias? Remove the execute bit on your uptime call:
chmod a-x /usr/bin/uptime
And then create yourself a script or alias to call a complete fake uptime?
Code:
#!/bin/bash
date
echo up 88 days, 1 user, load average: 0.09, 0.16, 0.07
Save that as uptime in /usr/local/bin (the different directory than the real uptime is in). Make it executable:
chmod 755 /usr/local/bin/uptime
And then execute it:
uptime
And see if it works.
Alternatively, an alias:
Open up your ~/.bashrc And add an alias:
alias uptime='date && echo up 88 days, 1 user, load average: 0.09, 0.16, 0.07'
Save and exit, then source it:
. .bashrc
And then type:
uptime (after removing the execute bit from the real uptime app of course) and see if that works
Cool
|
|
|
All times are GMT -5. The time now is 05:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|