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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
08-13-2003, 04: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, 04:16 PM
|
#2
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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, 04: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, 04: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, 04:29 PM
|
#5
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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, 04: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, 04:41 PM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
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, 04:47 PM
|
#8
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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, 05: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, 05: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, 01: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, 01:42 AM
|
#12
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
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, 01:44 AM
|
#13
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
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, 01: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, 02:11 AM
|
#15
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Max uptime?
|
driftingremains |
Linux - General |
44 |
07-16-2011 09:52 AM |
|
Uptime: 2.4 vs 2.6
|
Synesthesia |
Linux - General |
4 |
10-17-2005 03:23 PM |
|
24/7 uptime?
|
jollyjoice |
General |
20 |
01-25-2005 11:12 AM |
|
uptime for server
|
einstien |
Linux - General |
2 |
09-20-2004 08:35 PM |
|
Internet uptime
|
plexy |
Linux - Networking |
2 |
11-02-2003 10:42 AM |
All times are GMT -5. The time now is 12:01 PM.
|
|
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
|
|