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

	<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>2015-07-17T17:05:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2015-07-17T17:05:26-04:00</updated>

		<published>2015-07-17T17:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104315#p104315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104315#p104315"/>
		<title type="html"><![CDATA[Tcl Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104315#p104315"><![CDATA[
<blockquote class="uncited"><div>in shell<div class="codebox"><p>Code: </p><pre><code>touch /home/amo/public_html/images/dupe.db</code></pre></div></div></blockquote>Thank you for you help Caesar. <span style="text-decoration:underline">Dupe.db</span> has been created but still this script is not working for me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br>I think i should find alternative.<br>Thank you once again for all you help guys.<br>Regards.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Fri Jul 17, 2015 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-07-15T01:55:32-04:00</updated>

		<published>2015-07-15T01:55:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104303#p104303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104303#p104303"/>
		<title type="html"><![CDATA[Tcl Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104303#p104303"><![CDATA[
in shell<div class="codebox"><p>Code: </p><pre><code>touch /home/amo/public_html/images/dupe.db</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 15, 2015 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2015-07-14T12:37:49-04:00</updated>

		<published>2015-07-14T12:37:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104302#p104302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104302#p104302"/>
		<title type="html"><![CDATA[Re: Tcl Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104302#p104302"><![CDATA[
Arnold_x-p: thank you for your reply.<br>"amo" is my username on shell account. The issue is... there's no such file named "dupe.db" in any directory,  it's kind of database file But i have no idea how to create/generate this file.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Tue Jul 14, 2015 12:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-07-13T19:30:03-04:00</updated>

		<published>2015-07-13T19:30:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104301#p104301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104301#p104301"/>
		<title type="html"><![CDATA[Re: Tcl Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104301#p104301"><![CDATA[
the error is:<br>set save_folder "/home/<strong class="text-strong">amo</strong>/public_html/images"<br>set dupe_links  "/home/<strong class="text-strong">amo</strong>/public_html/images/dupe.db" <br><br>change <strong class="text-strong">amo</strong> for user access example<br>set dupe_links  "/home/my logging/public_html/images/dupe.db"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Jul 13, 2015 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2015-07-07T11:11:40-04:00</updated>

		<published>2015-07-07T11:11:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104286#p104286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104286#p104286"/>
		<title type="html"><![CDATA[Tcl Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104286#p104286"><![CDATA[
[Edit] (Just realized i have posted my topic on wrong forum, it should be on "Tcl FAQ" i think, i am sorry.)<br><br>Hello to all Tcl Gurus,<br>I got the Tcl script from this post <a href="http://forum.egghelp.org/viewtopic.php?t=19009" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19009</a><br>While trying to run the script i get this error message...<br><br><strong class="text-strong"><span style="color:red">"Tcl error [curl:image]: couldn't open "/home/amo/public_html/images/dupe.db" </span><br><br>what is "dupes.db" and how to fix this error? </strong><br>As mentioned in script Curl is required, i have already installed the Curl on my shell, do i need to configure it as well ? I am zero in Curl.<br>Hope you guys will help me out.<br>many thanks. <br><div class="codebox"><p>Code: </p><pre><code># 16/06/2012 # by doggo #omgwtfnzbs @ EFNET # curl_image.tcl # # curl is required on the shell to use this script # available @ http://curl.haxx.se/ ######################################################### bind pubm -|- {*://*.jpg*} curl:image bind pubm -|- {*://*.jpe*} curl:image bind pubm -|- {*://*.jpeg*} curl:image bind pubm -|- {*://*.gif*} curl:image bind pubm -|- {*://*.png*} curl:image bind pubm -|- {*://*.bmp*} curl:image set save_folder "/home/amo/public_html/images"set dupe_links  "/home/amo/public_html/images/dupe.db"set your_site "http://your.website.url" proc curl:image {nick userhost handle channel str} { global save_folder dupe_links your_site set urlcheck(ext) {        jpg        jpe        jpeg        gif        png        bmp } if {![regexp {((?:http://|www\.)+[^ ]+)} $str str]} { return } set extension ""        set wlink $str        if { [string match -nocase "*$your_site*" "$wlink"] == 1 } { return }        regsub -all -- {(http://)+} $str "" str        regexp {(www.)?[A-z|0-9|\-|\.|\_]*\.[A-z]{2,3}} $str host        regexp {[/]+(.)*} $str url        regexp {[A-z]{3,4}$} $str extension        set ispic 0        foreach i $urlcheck(ext) {                if {[string match -nocase $extension $i]} {                        set ispic 1                }        }        if {$ispic != 1} { return }        set file_name [md5 $wlink]        set file [open $dupe_links r]        set data [read $file]        close $file        set isdupe 0        foreach line [split $data \n] {            if { [string match -nocase "*$file_name*" "$line"] == 1 } {                catch {unset data}              set isdupe 1            }        }        if {$isdupe == 1} { return }        catch {exec curl $wlink -o $save_folder/$file_name.$extension}        if {![file exists $save_folder/$file_name.$extension]} {        return        } else {        set fp [open $dupe_links "a"]        puts $fp $file_name.$extension        close $fp       } } putlog "curl_image.tcl loaded" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Tue Jul 07, 2015 11:11 am</p><hr />
]]></content>
	</entry>
	</feed>
