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

	<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>2016-08-11T03:29:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2016-08-11T03:29:57-04:00</updated>

		<published>2016-08-11T03:29:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105319#p105319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105319#p105319"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105319#p105319"><![CDATA[
caesar:<br><br>Thank you. I was looking at <a href="http://forum.egghelp.org/viewtopic.php?p=104158" class="postlink">this</a> and was more confused than ever! Thank you for your help. Much appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Thu Aug 11, 2016 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2016-08-10T02:41:39-04:00</updated>

		<published>2016-08-10T02:41:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105309#p105309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105309#p105309"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105309#p105309"><![CDATA[
Put this code in restart.tcl in <em class="text-italics">scripts</em> folder of the bot then add it in eggdrop.conf then rehash the bot.<div class="codebox"><p>Code: </p><pre><code>bind cron - {1 13 * * *} restart:cronproc restart:cron {min hour day month weekday} {restart}</code></pre></div>This will make the bot restart itself at the 13:01 time you wanted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Aug 10, 2016 2:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-08-09T12:50:45-04:00</updated>

		<published>2016-08-09T12:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105305#p105305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105305#p105305"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105305#p105305"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>1 13 * * * /home/shianne/eggdrop/scripts/restart.tcl</code></pre></div></div></blockquote>crontab will try to run executable files.  A typical example would be an executable bash script file.<br>That's not a bash script file.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Sorry ... I didn't focus well or something on my first response here, and mention this.<br><br>Remove that line from crontab.<br><br><br>So you need a way to run a tcl procedure, on a schedule - right?<br><br>Back to tcl-commands.doc<br>Text search for           <br>bind cron<br>and read about that bind.  Read the description carefully too.<br><br>Before you try to add that bind to your tcl script,  it is a good idea to google for crontab examples and read up on how to set the schedule in them, as it is the same.<br><br>I hope this gets you going in the right direction.  <br>Let us know.<br><br><br>p.s.<br>I don't know if you need help with TCL and binds and procs or not.<br>This helps a lot:<br><a href="http://suninet.the-demon.de/index.htm" class="postlink">http://suninet.the-demon.de/index.htm</a><br>Easy to follow, and organized.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Aug 09, 2016 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2016-08-09T12:20:44-04:00</updated>

		<published>2016-08-09T12:20:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105304#p105304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105304#p105304"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105304#p105304"><![CDATA[
Hi guys:<br><br>I created the file <strong class="text-strong">restart.tcl</strong> and placed it in the scripts directory of the bot in question. In it I only had one command<br><div class="codebox"><p>Code: </p><pre><code>restart</code></pre></div>My cron jobs are:<br><div class="codebox"><p>Code: </p><pre><code>* 13 * * * rm -rf /home/shianne/eggdrop/scripts/dbase1 13 * * * /home/shianne/eggdrop/scripts/restart.tcl</code></pre></div>While the database did get deleted, the bot never restarted. I had to go in and manually restart her again. I think I'm getting close though <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile">  What am I doing wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Tue Aug 09, 2016 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-08-08T16:36:57-04:00</updated>

		<published>2016-08-08T16:36:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105298#p105298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105298#p105298"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105298#p105298"><![CDATA[
Visit:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br><br>and text search for:<br>restart<br><br>It is in this section:<br>9. Miscellaneous commands<br><br>See if that reads like it is what you want.<br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Aug 08, 2016 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2016-08-08T16:28:59-04:00</updated>

		<published>2016-08-08T16:28:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105297#p105297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105297#p105297"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105297#p105297"><![CDATA[
Hey caesar:<br><br>Thanks for your reply. I can't comment out that line due to the fact that the file I delete has to be instantly created again so the channel stats can be tracked. <br><br>So, here's what I guess I really need help with.<br><br>I delete that file using a cron job at 14:00 on the server. What has to happen next is I need to have the bot restart. I know what botchk is for and this isn't what I'm talking abt here. I need a file that I can execute with a cron job that will restart my bot at 14:01, one minute after the file's been deleted. I'll name the file restart.tcl, but I don't know what to put in it. <br><br>If I had this cron job set up:<br><div class="codebox"><p>Code: </p><pre><code>1 14 * * *  /home/shianne/eggdrop/scripts/restart.tcl</code></pre></div>what wld I use to restart the bot with?  <br><br>Thank you for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Mon Aug 08, 2016 4:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2016-08-08T01:32:31-04:00</updated>

		<published>2016-08-08T01:32:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105293#p105293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105293#p105293"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105293#p105293"><![CDATA[
The bot doesn't create any folders on it's own, so the culprit is the <em class="text-italics">statistics.tcl</em> file you have loaded. You would have to look in there to see the part that recreates the file and comment is out (meaning put a # in front of the lines).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Aug 08, 2016 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2016-08-07T11:50:28-04:00</updated>

		<published>2016-08-07T11:50:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105291#p105291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105291#p105291"/>
		<title type="html"><![CDATA[How to keep a file deleted?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105291#p105291"><![CDATA[
Using an eggdrop 1.8, i run statistics.tcl. <br>I have a cron job scheduled to delete the entire folder that holds the statsicts text:<br><div class="codebox"><p>Code: </p><pre><code>* 14 * * * rm -rf /home/shianne/eggdrop/scripts/dbase</code></pre></div>This works fine. But the thing is, the deleted folder with the stats file still comes right back, even thought it just got deleted. It doesn't get zeroed out. I have to manually shut down my bot, delete the folder, then start the bot again for the folder to stay deleted.<br><br>What am I missing here? What do I need to do? Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Sun Aug 07, 2016 11:50 am</p><hr />
]]></content>
	</entry>
	</feed>
