two questions about incorporating fortune and java uptime into screen for a minecraft server
existing code
what I would like to do is two things.
first would be to add java uptime to print the same as the server uptime.
So far I have
This returns
[QUOTE]
00:14:43
how can I print this out with simular output to
This returns
and I would like to print java uptime the same way.
About fortune
I would love to print the output to a screen session in the same format as the above code. I have no idea how to do this or if it possible. The problem is the screen session is running a minecraft server and the syntax is "Say insert message here: carriage return" and the text input is limited to about 110 char so lets say 100 to be safe with 4 on the front for "say ". Also it hates tabs indentation and most formatting and will not return correctly with this. It only likes plain txt and carriage returns. Its based in java so I do not know if that helps figure out text encoding.
I would LOVE to be able to put
into
within the above mentioned formatting. I will give you full credit in the script if you pull this off!
and me and my players will enjoy this very much!
Thanks in advance for any feedback or help!
---------- Post updated at 12:44 AM ---------- Previous update was at 12:41 AM ----------
the hostname of the machine is puffy because I was using freebsd for bit and switched to ubuntu and the hostname carried over. lol.
---------- Post updated at 12:57 AM ---------- Previous update was at 12:44 AM ----------
my kids are on minecraft constantly. I want to restrict its use but it seems impossible since it runs on java. :eek:
They are using :mad: windows 7 :mad: but I'm asking this question on here since Java is platform independent (er right?):confused: Also this forum was very helpful with my AWK... (10 Replies)
Hi
One of our server is showing the uptime 0hr 5mints
there is no log in /var/log/messages
there is no log in command "last"
kernel version is 2.4.9 (RH2.1 AS)
What could be the reason for this. is this issue is related to uptime counter reached max
how to verify this.
Best Regards
KVK (4 Replies)
Hi
I am looking for an easy way to lock game mode (0) for everyone included op on a Minecraft server. It can be a script that every time a player changes game to 1 the script changes back to 0. What the player writes is visible in the java console. I am not good at script programming and my... (0 Replies)
What is the uptime command output when the server is running more than one year?
My doubt is whether it show in number of days format or number years and number of days format?
For example, Assume the server is running 400 days 3 hrs 3 min 3 secs. The output like 400 days 3:3 min or 1 year 5... (3 Replies)
Hi!
I want to extract the uptime from the output of the uptime command.
The output:
11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43
I just need the "3:02" part. How can I do this?
Dirk (6 Replies)
how to find out total number of users logged in a server from uptime . i mean to say i need the total output of unix command . who gives the out put at a particular time . I need at all time from which machine who has connected , (3 Replies)
Hello,
I would like to create a report every month about the working hours of some servers.
I need to get results such as how long are the servers up every month, which hours/days are up.
Do you know any tool which will help me?
Thanks in advance (2 Replies)
Let me preface by saying, I have looked through many threads that deal with keep the decimal, however I'm not sure that any one resolution meets my needs, ok, ok, they could. So maybe it's just that I am not understanding the resolution - therefore I am posting a new thread.
myknowledgebase=at... (2 Replies)