<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/340" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2001-11-09T08:28:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/340</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-09T08:28:00-04:00</updated>

		<published>2001-11-09T08:28:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1545#p1545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1545#p1545"/>
		<title type="html"><![CDATA[Get info from /proc/uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1545#p1545"><![CDATA[
Thanks... but hehe<br>I found a better way.<br><br>proc get_time {} {<br>set total2 [lindex[exec /usr/bin/cat /proc/uptime] 0]<br>set total [lindex [split $total2 .] 0]<br>return [duration $total]<br>}<p>Statistics: Posted by Guest — Fri Nov 09, 2001 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-11-08T21:13:00-04:00</updated>

		<published>2001-11-08T21:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1540#p1540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1540#p1540"/>
		<title type="html"><![CDATA[Get info from /proc/uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1540#p1540"><![CDATA[
I think the first number is the number of seconds the system has been up. I don't know what the second number is.<br><br>Getting the time is easy:<div class="codebox"><p>Code: </p><pre><code>proc get_time {total} {  set seconds [expr $total % 60]  set total [expr $total / 60]  set minutes [expr $total % 60]  set total [expr $total / 60]  set hours [expr $total % 24]  set total [expr $total / 24]  set days [expr $total % 365]  set years [expr $total / 365]  return [list $years $days $hours $minutes $seconds]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Nov 08, 2001 9:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-08T20:12:00-04:00</updated>

		<published>2001-11-08T20:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1531#p1531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1531#p1531"/>
		<title type="html"><![CDATA[Get info from /proc/uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1531#p1531"><![CDATA[
Yea, i've looked there.. but i've only found scripts that gives the bots uptime or the machine uptime in only days.. so far.. will continue to look... =)<p>Statistics: Posted by Guest — Thu Nov 08, 2001 8:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-08T19:56:00-04:00</updated>

		<published>2001-11-08T19:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1528#p1528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1528#p1528"/>
		<title type="html"><![CDATA[Get info from /proc/uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1528#p1528"><![CDATA[
Look through scripts such as netbots.tcl.<br><br>There is an example of how to get the uptime information, through which a simple puhelp will help get it to it's destination.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Nov 08, 2001 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-08T19:06:00-04:00</updated>

		<published>2001-11-08T19:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1527#p1527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1527#p1527"/>
		<title type="html"><![CDATA[Get info from /proc/uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1527#p1527"><![CDATA[
Anyone know the formula for transforming the info in /proc/uptime to weeks days hours mins and secs (want it to say the uptime nice to the channel on when triggered. like  1week 2days 34min and so on .. not bot uptime .. but machine uptime) ? <br><br>&lt;font size=-1&gt;[ This Message was edited by: woffer on 2001-11-08 16:06 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu Nov 08, 2001 7:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
