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

	<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-10-02T10:16:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-10-02T10:16:18-04:00</updated>

		<published>2007-10-02T10:16:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76339#p76339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76339#p76339"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76339#p76339"><![CDATA[
its done, but don't transfer files.<br><div class="codebox"><p>Code: </p><pre><code>## Sendftp v1.01 (12/6/97) by Ernst &lt;baschneo@trick.informatik.uni-stuttgart.de&gt;# Ernst's eggdrop page:  http://www.sodre.net/ernst/eggdrop/# =============================================================================# This is a proc to send a file via FTP to another server. Useful in many# situations, for example to upload a HTML file generated by eggdrop to your# www server if it is not the same as your eggdrops machine.# Change this to something to use to check if a host is alife.# set pingcheck "" to disable this checking.# "/bin/ping -c 1" works on Linux. Try just "/bin/ping" on other machines# Set to "" to disable this checkingset pingcheck "/bin/ping -c 1"# Include it with 'source scripts/sendftp.tcl'.  Call it with all parameters:##   "sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on pass /www/madrid/Madrid.html"## 'localfile' and 'remotefile' *must* both be given as FULL paths to the# filenames, the first on the local, the secondon the remote server.## For example:## sendftp /home/bill/stats.htm www.ms.com bill secret /bgates/WWW/stats.htm#             (local-file       server    user  pass       remote-file)#bind time - "*0 * * * *" sendmyfileproc sendmyfile {min hour day month year} { sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on pass /www/madrid/Madrid.html}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 $pipe    putlog "\002SendFTP: Archivo's Cargados Correctamente...\002"return 1} putlog "\002SendFTP Loaded\002"</code></pre></div>=/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Oct 02, 2007 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-09-27T12:58:36-04:00</updated>

		<published>2007-09-27T12:58:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76289#p76289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76289#p76289"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76289#p76289"><![CDATA[
Then, I suggest you read the documentation for it..<br><blockquote class="uncited"><div>    (37) TIME (stackable)<br>         bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<br><br>         Description: allows you to schedule procedure calls at certain<br>           times. mask matches 5 space separated integers of the form:<br>           "minute hour day month year". minute, hour, day, month have a<br>           zero padding so they are exactly two characters long; year is<br>           four characters. Flags are ignored.<br>         Module: core</div></blockquote>This means, that 5 arguments are added to your commandline, and hence the proc you call must be written to handle it.<br><br>Simplest would probably be to create a new proc with the sole purpose of executing "sendftp /home/stats.htm ......", and trigger it using the binding...<br><div class="codebox"><p>Code: </p><pre><code>bind time - "*0 * * * *" sendmyfileproc sendmyfile {min hour day month year} { sendftp "/home/nor7on/www/madrid/Madrid.html" "www.aikidoestrac.org" "nor7on" "mypass" "/www/madrid/Madrid.html"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Sep 27, 2007 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-09-26T16:36:49-04:00</updated>

		<published>2007-09-26T16:36:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76262#p76262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76262#p76262"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76262#p76262"><![CDATA[
yes, because i want, upload my .html every 5min or 10min.<br><br>helpme pls...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Sep 26, 2007 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-09-26T15:13:14-04:00</updated>

		<published>2007-09-26T15:13:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76260#p76260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76260#p76260"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76260#p76260"><![CDATA[
Did you add the time binding yourself?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Sep 26, 2007 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-09-26T15:04:52-04:00</updated>

		<published>2007-09-26T15:04:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76259#p76259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76259#p76259"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76259#p76259"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## Sendftp v1.01 (12/6/97) by Ernst &lt;baschneo@trick.informatik.uni-stuttgart.de&gt;# Ernst's eggdrop page:  http://www.sodre.net/ernst/eggdrop/# =============================================================================# This is a proc to send a file via FTP to another server. Useful in many# situations, for example to upload a HTML file generated by eggdrop to your# www server if it is not the same as your eggdrops machine.# Change this to something to use to check if a host is alife.# set pingcheck "" to disable this checking.# "/bin/ping -c 1" works on Linux. Try just "/bin/ping" on other machines# Set to "" to disable this checkingset pingcheck "/bin/ping -c 1"# Include it with 'source scripts/sendftp.tcl'.  Call it with all parameters:##   "sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on peruclic /www/madrid/Madrid.html"## 'localfile' and 'remotefile' *must* both be given as FULL paths to the# filenames, the first on the local, the secondon the remote server.## For example:## sendftp /home/bill/stats.htm www.ms.com bill secret /bgates/WWW/stats.htm#             (local-file       server    user  pass       remote-file)#bind time - * {sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on mypass /www/madrid/Madrid.html}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 $pipe    putlog "\002SendFTP: Archivo's Cargados Correctamente...\002"return 1} putlog "\002SendFTP Loaded\002"</code></pre></div>and, i get this other error.<br><div class="codebox"><p>Code: </p><pre><code>&lt;(Alaska^&gt; [14:01] Tcl error [sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on mypass /www/madrid/Madrid.html]: wrong # args: should be "sendftp localfile server user pass remotefile"&lt;\Nor7on&gt; .set errorInfo&lt;(Alaska^&gt; [14:03] #Nor7on# set errorInfo&lt;(Alaska^&gt; Currently: wrong # args: should be "sendftp localfile server user pass remotefile"&lt;(Alaska^&gt; Currently:     while executing&lt;(Alaska^&gt; Currently: "sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on mypass /www/madrid/Madrid.html $_time1 $_time2 $_time3 $_time4 $_time5"</code></pre></div>help me pls <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Sep 26, 2007 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-09-26T07:21:03-04:00</updated>

		<published>2007-09-26T07:21:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76252#p76252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76252#p76252"/>
		<title type="html"><![CDATA[Re: help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76252#p76252"><![CDATA[
You changed the argument names in the proc instead of passing those arguments to the proc when invoking it. Get a fresh copy of the script (to fix the part you broke), then change your bind to include the required arguments: <div class="codebox"><p>Code: </p><pre><code>bind time - * {sendftp /home/nor7on/www/madrid/Madrid.html www.aikidoestrac.org nor7on password /www/madrid/Madrid.html}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 26, 2007 7:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-09-26T05:13:28-04:00</updated>

		<published>2007-09-26T05:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76249#p76249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76249#p76249"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76249#p76249"><![CDATA[
opsss, sorry rosc...<br><div class="codebox"><p>Code: </p><pre><code>&lt;(Alaska^&gt; [04:11] #Nor7on# set errorInfo&lt;(Alaska^&gt; Currently: can't read "localfile": no such variable&lt;(Alaska^&gt; Currently:     while executing&lt;(Alaska^&gt; Currently: "file exist $localfile"&lt;(Alaska^&gt; Currently:     (procedure "sendftp" line 3)&lt;(Alaska^&gt; Currently:     invoked from within&lt;(Alaska^&gt; Currently: "sendftp $_time1 $_time2 $_time3 $_time4 $_time5"&lt;(Alaska^&gt; [04:12] Tcl error [sendftp]: can't read "localfile": no such variable</code></pre></div>And now ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Sep 26, 2007 5:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-09-26T05:10:24-04:00</updated>

		<published>2007-09-26T05:10:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76248#p76248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76248#p76248"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76248#p76248"><![CDATA[
i can't understand you says.<br><br><br>i do it:<br><blockquote class="uncited"><div>&lt;\Nor7on&gt; .set errorinfo 1<br>&lt;(Alaska^&gt; [04:08] #Nor7on# set errorinfo 1<br>&lt;(Alaska^&gt; Ok, set.</div></blockquote>and now ? how do it <br><blockquote class="uncited"><div>when posting code, use code tag, not quote; the code should be indented nicely, making it easier to read and understand, for example use:<br>Code:<br><br>foreach foo $bar {<br>   if {$foo == "moo"} {<br>      #do something<br>   }<br>} </div></blockquote>where do it ?<br><br>thxs. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Sep 26, 2007 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-09-26T04:13:35-04:00</updated>

		<published>2007-09-26T04:13:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76247#p76247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76247#p76247"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76247#p76247"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Sep 26, 2007 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2007-09-26T03:21:17-04:00</updated>

		<published>2007-09-26T03:21:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76246#p76246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76246#p76246"/>
		<title type="html"><![CDATA[help with sendftp.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76246#p76246"><![CDATA[
have eggdrop 1.6.18<br><blockquote class="uncited"><div>bind time - "* * * * *" sendftp<br><br>proc sendftp { /home/nor7on/www/madrid/Madrid.html <a href="http://www.aikidoestrac.org" class="postlink">www.aikidoestrac.org</a> nor7on password /www/madrid/Madrid.html } {<br>global pingcheck<br>if {![file exist $localfile]} {<br>return "sendftp: File $localfile does not exist."<br>}<br>if {$pingcheck != ""} {<br>if {[catch {exec [lindex $pingcheck 0] [lrange $pingcheck 1 end] $server &gt; /dev/null 2&gt; /dev/null}]} {<br>return "sendftp: Machine $server seems to be dead."<br>}<br>}<br>set noftp [catch {set ftpprog [exec which ftd]}] <br>if {$noftp} {<br>if {[file executable /usr/bin/ftp]} {<br>set ftpprog /usr/bin/ftp<br>set noftp 0<br>}<br>if {[file executable /bin/ftp]} {<br>set ftpprog /bin/ftp<br>set noftp 0<br>}<br>}<br>if {$noftp} { return "sendftp: You don't seem to have the 'ftp' tool" }<br>set pipe [open "|$ftpprog -n $server" w]<br>puts $pipe "user $user $pass"<br>puts $pipe "bin"<br>puts $pipe "put $localfile $remotefile"<br>puts $pipe "quit"<br>close $pipe<br>return 1<br>}<br><br>putlog "SendFTP Loaded"</div></blockquote>And this is the error in the Partyline.<br><blockquote class="uncited"><div>&lt;(Alaska^&gt; [02:16] Tcl error [sendftp]: can't read "localfile": no such variable<br>&lt;(Alaska^&gt; [02:17] Tcl error [sendftp]: can't read "localfile": no such variable<br>&lt;(Alaska^&gt; [02:18] Tcl error [sendftp]: can't read "localfile": no such variable</div></blockquote>Can Help me pls ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Sep 26, 2007 3:21 am</p><hr />
]]></content>
	</entry>
	</feed>
