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

	<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>2012-10-14T05:12:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[hazzlah]]></name></author>
		<updated>2012-10-14T05:12:41-04:00</updated>

		<published>2012-10-14T05:12:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100126#p100126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100126#p100126"/>
		<title type="html"><![CDATA[lftp &amp; get &quot;this&quot; file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100126#p100126"><![CDATA[
Hey Folks , <br>i need some help hope everybody understood what i will then my english its really bad <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":-P" title="Razz"> <br><br>So i will that my eggdrop download a File whats alltime ends with *.txt.<br><br>The Dir change everytim when a new *.txt came. But this all works fine , my Problem its , in this dir a some diffrent files , some times he download the right file but sometimes he downloaded the wrong file and thats really        <br>bad :-/<br><br>So here its the Code witch i use maybe its there a better option for string match or somethink other.<br><br> set get_filename [exec lftp -c open $ip -u $user,$password -p $port -e "cd $txtdir; ls -m1; mget -O $tmp *.txt;"]<br><br>        foreach filename [split $get_filename "\n"] {<br><br>        if {[string match -nocase {*.txt} $filename]} { <br><br>So hope anybody out there can help me thats he only download the files witch end with .txt and no other.<br><br>Thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11665">hazzlah</a> — Sun Oct 14, 2012 5:12 am</p><hr />
]]></content>
	</entry>
	</feed>
