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

	<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>2013-01-26T14:35:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-26T14:35:50-04:00</updated>

		<published>2013-01-26T14:35:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100775#p100775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100775#p100775"/>
		<title type="html"><![CDATA[sendftp for multitple files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100775#p100775"><![CDATA[
Can anyone tell me what is wrong with this code? When its tested to upload only 1 file it works ok but whene i make it do add multiple files it fails.<br><div class="codebox"><p>Code: </p><pre><code>proc timed:upload {m h d m y} {global ftpset ftpx [open "|ftp -n $ftp(host)" w]puts $ftpx "user $ftp(user) $ftp(pass)"puts $ftpx "bin"foreach file [lsort [glob -directory $ftp(dir) *]] {if { [file readable $file] &amp;&amp; [file isfile $file]} {puts $ftpx "put $file ${ftp(updir)}${file}"putlog "${ftp(updir)}${file}"}}puts $ftpx "quit"close $ftpxputlog "FTP: all files in $ftp(dir) uploaded successfuly to $ftp(host)"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Jan 26, 2013 2:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
