<?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/11968" />

	<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>2006-06-08T02:10:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-06-08T02:10:57-04:00</updated>

		<published>2006-06-08T02:10:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63814#p63814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63814#p63814"/>
		<title type="html"><![CDATA[Uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63814#p63814"><![CDATA[
use <a href="http://demond.net/rconsole.tcl" class="postlink">rconsole</a><br><br>it shows the uptime of each host on your botnet (and allows you to control it remotely without having to log into each bot, too)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Jun 08, 2006 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Snorly]]></name></author>
		<updated>2006-06-08T00:51:53-04:00</updated>

		<published>2006-06-08T00:51:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63813#p63813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63813#p63813"/>
		<title type="html"><![CDATA[Uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63813#p63813"><![CDATA[
yes <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>and i want it to show for 2 more maschines <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> if it is possible<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7655">Snorly</a> — Thu Jun 08, 2006 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-06-07T22:46:34-04:00</updated>

		<published>2006-06-07T22:46:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63810#p63810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63810#p63810"/>
		<title type="html"><![CDATA[Uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63810#p63810"><![CDATA[
If I understand you correctly:<blockquote class="uncited"><div># This script shows the uptime of the bot's maschine.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jun 07, 2006 10:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Snorly]]></name></author>
		<updated>2006-06-07T17:34:31-04:00</updated>

		<published>2006-06-07T17:34:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63803#p63803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63803#p63803"/>
		<title type="html"><![CDATA[Uptime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63803#p63803"><![CDATA[
I want to know if it is possible with this script to display uptime on local shell and in other shells. if it is please tell me how<br><div class="codebox"><p>Code: </p><pre><code># uptime.tcl v1.08 [11 November 2000] # Copyright (C) 1999-2000 Teemu Hjelt &lt;temex@iki.fi&gt;## Latest version can be found from http://www.iki.fi/temex/eggdrop/# # If you have any suggestions, questions or you want to report # bugs, please feel free to send me email to temex@iki.fi## This script shows the uptime of the bot's maschine.## Current DCC Commands:#    .utime [option]## Current MSG Commands:#    uptime/utime [option]## Current Channel Commands:#    uptime/utime [option]## Tested on eggdrop1.4.4 with TCL 7.6## Version history:# v1.00 - The very first version!# v1.01 - Added little cosmetic things.# v1.02 - There were few 'return 0' strings too much.# v1.03 - Fixed few bugs, removed few params from uptime command and  #         modified .uptime to .utime because .uptime was already in use. # v1.04 - Renamed the procs, fixed little bug in ut_douptime proc and added msg commands.# v1.05 - Fixed few little bugs and typos.# v1.06 - Little bug fixed in msg command.# v1.07 - Some cosmetic changes.# v1.08 - Changed few minor things.### Settings ##### [0/1] Enable Channel Command?set ut_enablepublic 1## [0/1] Enable MSG Command?set ut_enablemsg 1## [0/1] Enable DCC Command?set ut_enabledcc 1## What command prefix do you want to use for channel commands?set ut_cmdpfix "!"## What users can use the uptime command?set ut_flag1 "-"## What users can start/stop the timer and show uptime on the channel/partyline?set ut_flag2 "o"## Send the uptime via NOTICE or PRIVMSG?set ut_method "PRIVMSG"## [0/1] Enable timer which shows uptime on the channel(s) or on partyline?set ut_enabletimer 1## What is the interval for the timer (mins)?set ut_interval 60## [0/1] Show uptime on partyline?set ut_showdcc 1## [0/1] Show uptime on channel(s)?set ut_showchannel 1## On what channels do you want to show the uptime?# Note: Set this to "" to show the uptime on all channels.set ut_chans "#si-shell"###### You don't need to edit below this ######### Misc Things ###set ut_ver "1.08"### Bindings ##### Channel Commandif {$ut_enablepublic} {bind pub - ${ut_cmdpfix}uptime pub:ut_uptimebind pub - ${ut_cmdpfix}utime pub:ut_uptime}## MSG Commandif {$ut_enablemsg} {bind msg - uptime msg:ut_uptimebind msg - utime msg:ut_uptime}## DCC Commandif {$ut_enabledcc} {bind dcc - utime dcc:ut_uptime}### Channel Command ###proc pub:ut_uptime {nick uhost hand chan arg} {global ut_cmdpfix ut_flag1 ut_flag2 ut_interval ut_showdcc ut_showchannel ut_method ut_verset option [string tolower [lindex [split $arg] 0]]if {[matchattr $hand $ut_flag2]} {if {($option != "") &amp;&amp; ($option != "-p") &amp;&amp; ($option != "-start") &amp;&amp; ($option != "-stop")} {putserv "PRIVMSG $nick :uptime.tcl v$ut_ver commands:"putserv "PRIVMSG $nick :   ${ut_cmdpfix}uptime        - Shows uptime for you." putserv "PRIVMSG $nick :   ${ut_cmdpfix}uptime -p     - Shows uptime on $chan."putserv "PRIVMSG $nick :   ${ut_cmdpfix}uptime -start - Starts timer."putserv "PRIVMSG $nick :   ${ut_cmdpfix}uptime -stop  - Stops timer."} else {if {$option == ""} {putserv "$ut_method $nick :[ut_douptime]"} elseif {$option == "-p"} { putserv "$ut_method $chan :[ut_douptime]" } elseif {$option == "-start"} {ut_stoptimerut_starttimer  putserv "NOTICE $nick :Timer started! Interval: $ut_interval mins" } elseif {$option == "-stop"} { ut_stoptimer putserv "NOTICE $nick :Timer stopped!" }}} elseif {[matchattr $hand $ut_flag1]} {putserv "$ut_method $nick :[ut_douptime]"}return 1}### MSG Command ###proc msg:ut_uptime {nick uhost hand arg} {global ut_cmdpfix ut_flag1 ut_flag2 ut_interval ut_showdcc ut_showchannel ut_method ut_verset option [string tolower [lindex [split $arg] 0]]if {[matchattr $hand $ut_flag2]} {if {($option != "") &amp;&amp; ($option != "-start") &amp;&amp; ($option != "-stop")} {putserv "PRIVMSG $nick :uptime.tcl v$ut_ver commands:"putserv "PRIVMSG $nick :   uptime        - Shows uptime for you." putserv "PRIVMSG $nick :   uptime -start - Starts timer."putserv "PRIVMSG $nick :   uptime -stop  - Stops timer."} else {if {$option == ""} { putserv "$ut_method $nick :[ut_douptime]" } elseif {$option == "-start"} {ut_stoptimerut_starttimer  putserv "NOTICE $nick :Timer started! Interval: $ut_interval mins" } elseif {$option == "-stop"} { ut_stoptimer putserv "NOTICE $nick :Timer stopped!" }}} elseif {[matchattr $hand $ut_flag1]} {putserv "$ut_method $nick :[ut_douptime]"}return 1}### DCC Command ###proc dcc:ut_uptime {hand idx arg} {global ut_cmdpfix ut_flag1 ut_flag2 ut_interval ut_showdcc ut_showchannel ut_method ut_verset option [string tolower [lindex [split $arg] 0]]putcmdlog "#$hand# utime $arg"if {[matchattr $hand $ut_flag2]} {if {($option != "") &amp;&amp; ($option != "-p") &amp;&amp; ($option != "-start") &amp;&amp; ($option != "-stop")} {putidx $idx "uptime.tcl v$ut_ver commands:"putidx $idx "   .utime        - Shows uptime for you." putidx $idx "   .utime -p     - Shows uptime on partyline."putidx $idx "   .utime -start - Starts timer."putidx $idx "   .utime -stop  - Stops timer."} else {if {$option == ""} { putidx $idx "[ut_douptime]" } elseif {$option == "-p"} { putlog "[ut_douptime]" } elseif {$option == "-start"} { ut_stoptimerut_starttimer  putidx $idx "Timer started! Interval: $ut_interval mins." } elseif {$option == "-stop"} { ut_stoptimer  putidx $idx "Timer stopped!" }}} elseif {[matchattr $hand $ut_flag1]} {putidx $idx "[ut_douptime]"}}### Other Procs ###proc ut_showuptime { } {global botnick ut_chans ut_showchannel ut_showdcc ut_method if {$ut_showchannel} {foreach chan [channels] {if {($ut_chans != "") &amp;&amp; ([lsearch -exact [split [string tolower $ut_chans]] [string tolower $chan]] == -1)} { continue }if {([validchan $chan]) &amp;&amp; ([onchan $botnick $chan])} { putserv "$ut_method $chan :[ut_douptime]" }}}if {$ut_showdcc} {putlog "uptime: [ut_douptime]"}ut_starttimer}proc ut_douptime { } {if {[catch {exec uptime} uptime]} { set uptime "Uptime is unavailable." }if {[catch {exec uname -sr} machine]} { set machine [unames] }if {[catch {exec hostname} hostname]} {set hostname [info hostname] }return "Uptime for $hostname ($machine): $uptime"}proc ut_starttimer { } {global ut_intervalif {![string match "*ut_showuptime*" [timers]]} {timer $ut_interval ut_showuptime}}proc ut_stoptimer { } {foreach timer [timers] {if {[string match "*ut_showuptime*" $timer]} { killtimer [lindex $timer 2]}}}### End ###if {$ut_enabletimer} { ut_starttimer }putlog "TCL loaded: uptime.tcl v$ut_ver by Sup &lt;temex@iki.fi&gt;" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7655">Snorly</a> — Wed Jun 07, 2006 5:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
