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

	<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>2007-01-28T20:03:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-01-28T20:02:45-04:00</updated>

		<published>2007-01-28T20:02:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70036#p70036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70036#p70036"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70036#p70036"><![CDATA[
it worked, thx =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Sun Jan 28, 2007 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-01-24T07:33:38-04:00</updated>

		<published>2007-01-24T07:33:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69883#p69883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69883#p69883"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69883#p69883"><![CDATA[
Hi,<br><br>first: thx for all your help.<br><br>I tried implementing the "[open "|&lt;command&gt;"] "-Command because that seemed to be the simplest solution for my problem. Unfortunally I am still searching the forum for an example.<br><br>I'll keep you postet.^^<br><br><br>-typ-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Wed Jan 24, 2007 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-01-23T15:30:49-04:00</updated>

		<published>2007-01-23T15:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69858#p69858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69858#p69858"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69858#p69858"><![CDATA[
@-typ:<br>As indicated by Sir_Fz's post, the command executed when the binding triggers would be "procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;", hence you'll have to create your sendftp-proc such that it accepts those arguments accordingly. Also, should you desire to supply additional arguments, you'd have to do it something like this:<div class="codebox"><p>Code: </p><pre><code>bind pub - !command [list proc $myvar]</code></pre></div>Also, you would have to alter your proc accordingly to accept the additional argument, making the argument-list "&lt;myvar&gt; &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;".<br>There is however, much easier ways of doing what I think you wish to accomplish, such as accessing globalspace variables from within your proc (see manpage for "global").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 23, 2007 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-01-23T12:59:21-04:00</updated>

		<published>2007-01-23T12:59:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69852#p69852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69852#p69852"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69852#p69852"><![CDATA[
Because bind doesn't work in the way you try to use it, nor does it have the capability to use that character as a variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jan 23, 2007 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-23T10:21:01-04:00</updated>

		<published>2007-01-23T10:21:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69850#p69850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69850#p69850"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69850#p69850"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">PUB</strong><br>bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>Description: used for commands given on a channel. The first word<br>becomes the command and everything else is the text argument.<br>Module: irc</div></blockquote>As for freezing after [exec], try use [open "|&lt;command&gt;"] instead (<a href="http://forum.egghelp.org/search.php" class="postlink">Search</a> the forum for examples).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jan 23, 2007 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-01-23T10:06:51-04:00</updated>

		<published>2007-01-23T10:06:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69849#p69849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69849#p69849"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69849#p69849"><![CDATA[
Hi,<br><br>thx for your help. I#m not sure if I understood your first question right. But my user-account data and pass are saved in the "ftpserver.ftp" mentioned here:<br><br>[exec /usr/bin/ncftpput -f ./scripts/<strong class="text-strong">ftpserver.ftp</strong> /Allstars/ ./scripts/moxquizz/quizdata/rankallstars.data]<br><br>The bot executes this line (successfully send the rankallstars.data to my ftp-account), but stops afterwards. I added another line witch should send another file, but the bot doesn't.<br><br>Unfortunally I am not able to use contrab.<br><br>Concerning the sendftp.tcl I added:<br><br><div class="codebox"><p>Code: </p><pre><code>set ftpserv "moxquizz/scripts/logzipper.txt moxquiz.mo.funpic.de moxquiz mypass /logs/logzipper.txt"bind pub - !logs sendftp §ftpservset pingcheck ""proc sendftp { localfile server user pass remotefile } {global pingcheckif {![file exist $localfile]} {return "sendftp: File $localfile does not exist."}if {$pingcheck != ""} {if {[catch {exec [lindex $pingcheck 0] [lrange $pingcheck 1 end] $server &gt; /dev/null 2&gt; /dev/null}]} {return "sendftp: Machine $server seems to be dead."}}set noftp [catch {set ftpprog [exec which ftd]}] if {$noftp} {if {[file executable /usr/bin/ftp]} {set ftpprog /usr/bin/ftpset noftp 0}if {[file executable /bin/ftp]} {set ftpprog /bin/ftpset noftp 0}}if {$noftp} { return "sendftp: You don't seem to have the 'ftp' tool" }set pipe [open "|$ftpprog -n $server" w]puts $pipe "user $user $pass"puts $pipe "bin"puts $pipe "put $localfile $remotefile"puts $pipe "quit"close $pipereturn 1}</code></pre></div>But i get the following error:<br><blockquote class="uncited"><div>[15:01] wrong # args: should be "bind type flags cmd/mask ?procname?"<br>    while executing<br>"bind pub - !logs sendftp §ftpserv"<br>    (file "scripts/mowlgiggle.tcl" line 57)<br>    invoked from within<br>"source scripts/mowlgiggle.tcl"<br>    (file "eggdrop.conf" line 132)<br>[15:01] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote>I suppose that means my §ftpserv isn't in the right place. but where to put it?<br><br>thx for your help,<br><br>-typ-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Tue Jan 23, 2007 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-01-22T20:21:42-04:00</updated>

		<published>2007-01-22T20:21:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69833#p69833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69833#p69833"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69833#p69833"><![CDATA[
It would stop because you're not logging into a user account and sending a pass?<br><br>It's possible <a href="http://forum.egghelp.org/viewtopic.php?t=11378&amp;highlight=ftp" class="postlink">this</a> post is what you need to read; do it via a bash script (with crontab) instead.<br><br>The code in the last post will require a little editing to have it do what you want but I think you'll get the idea of how it is supposed to work.<br><br>There's also <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=306" class="postlink">sendftp.tcl</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jan 22, 2007 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-01-22T16:06:55-04:00</updated>

		<published>2007-01-22T16:06:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69827#p69827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69827#p69827"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69827#p69827"><![CDATA[
Pls, anyone help me. =)<br><br>It doesn't need to be this code. I just need something that sends this file every 24h by ftp.<br><br>Thx,<br><br>-typ-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Mon Jan 22, 2007 4:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cannot_delete]]></name></author>
		<updated>2007-01-28T20:03:20-04:00</updated>

		<published>2007-01-20T11:46:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69762#p69762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69762#p69762"/>
		<title type="html"><![CDATA[ftp-send kills script(?) [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69762#p69762"><![CDATA[
Hi,<br><br>if I add this:<br><div class="codebox"><p>Code: </p><pre><code>[exec /usr/bin/ncftpput -f ./scripts/ftpserver.ftp /Allstars/ ./scripts/moxquizz/quizdata/rankallstars.data]</code></pre></div>to my MoxQuiz-Script (or any other script) the script stops. It does send the rankallstars.data though.<br><br>Same thing with this timer-command:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "10 * * * *" </code></pre></div>It only sends once. 10 min. later nothing happens.<br><br>If i bind it to a "!send"-command it works. <br><br><br><br>Thx for your help,<br><br>-typ-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8421">cannot_delete</a> — Sat Jan 20, 2007 11:46 am</p><hr />
]]></content>
	</entry>
	</feed>
