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

	<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>2004-07-17T08:37:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-07-17T08:37:37-04:00</updated>

		<published>2004-07-17T08:37:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38707#p38707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38707#p38707"/>
		<title type="html"><![CDATA[problem with sendftp tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38707#p38707"><![CDATA[
sendftp.tcl <div class="codebox"><p>Code: </p><pre><code>## Sendftp v1.01 (12/6/97) by Ernst &lt;ernst@studbox.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 &lt;localfile&gt; &lt;server&gt; &lt;user&gt; &lt;password&gt; &lt;remotefile&gt;## '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)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><br>now where can i set user pass etc ...<br><br>i put<div class="codebox"><p>Code: </p><pre><code>sentftp /home/bot/html/index.html www.mynet.com user pas /stats.html</code></pre></div>and a timer<div class="codebox"><p>Code: </p><pre><code>bind time - "* * * * *" time:sendftpproc time:sendftp {args} {   sendftp etc. }</code></pre></div>and i get tis error <div class="codebox"><p>Code: </p><pre><code>Tcl error [time:sendftp]: wrong # args: should be "sendftp localfile server user pass remotefile"</code></pre></div><br>and i dont now what to do<p>Statistics: Posted by Guest — Sat Jul 17, 2004 8:37 am</p><hr />
]]></content>
	</entry>
	</feed>
