Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Freak uptime?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Wed Jun 11, 2003 7:18 pm    Post subject: Freak uptime? Reply with quote

Is it possible to change uptime on the fly :wink:
I was planning to show my windoz frnds some show!!
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Wed Jun 11, 2003 7:24 pm    Post subject: Reply with quote

Sure! Create a new plain text file and call it "uptime" but put it somewhere that won't conflict with the real app.

Inside the text file write:
Code:

echo "Uptime: 999 years"

You can change the wording a little to look like the real thing. Open a terminal and navigate to the directory you saved the file in. Do:

chmod +x ./uptime

That'll make the text file executable. Now when you in a terminal and in that directory, ./uptime will make it print that text out and impress your friends.

If you want to get fancy, make a script or console app in C that'll get the actually uptime and add a few extra months/years to it ;)
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum