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

	<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>2001-12-29T21:49:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-12-29T21:49:00-04:00</updated>

		<published>2001-12-29T21:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3261#p3261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3261#p3261"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3261#p3261"><![CDATA[
Try the 'open' command, and then use a fileevent to see when the command is done.<br><div class="codebox"><p>Code: </p><pre><code>proc reader {fp} {  gets $fp text  # You can parse the $text var to get status information  if {[eof $fp]} {    # The program exited.    close $fp  }}set fp [open "|wget baa"]fileevent $fp readable [list reader $fp]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Dec 29, 2001 9:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-29T21:00:00-04:00</updated>

		<published>2001-12-29T21:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3260#p3260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3260#p3260"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3260#p3260"><![CDATA[
<blockquote class="uncited"><div>On 2001-12-28 19:33, guppy wrote:<br>Not sure what would be a really good way</div></blockquote>use an seperate egg to exec the wget cmd <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> (an egg that only does something on the .wget trigger)<p>Statistics: Posted by Guest — Sat Dec 29, 2001 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2001-12-28T22:33:00-04:00</updated>

		<published>2001-12-28T22:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3231#p3231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3231#p3231"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3231#p3231"><![CDATA[
exec wget &lt;whatever&gt; is bad also because it will cause your bot to block while the file is downloading -- if you download a bigger file your bot will begin to ping out from irc and such ..<br><br>a better way would be to exec wget &lt;whatever&gt; &amp; but then you can't tell when the file is done or not ..<br><br>Not sure what would be a really good way<br><br>Jeff<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Fri Dec 28, 2001 10:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-28T17:03:00-04:00</updated>

		<published>2001-12-28T17:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3223#p3223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3223#p3223"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3223#p3223"><![CDATA[
LoL <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>that's dumb <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":razz:" title="Razz"><br><br>but it's working now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Fri Dec 28, 2001 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2001-12-28T13:06:00-04:00</updated>

		<published>2001-12-28T13:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3213#p3213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3213#p3213"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3213#p3213"><![CDATA[
<blockquote class="uncited"><div>DoH<br><br>i'm not that stupid <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"></div></blockquote>I was <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Fri Dec 28, 2001 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-28T12:18:00-04:00</updated>

		<published>2001-12-28T12:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3211#p3211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3211#p3211"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3211#p3211"><![CDATA[
<blockquote class="uncited"><div>On 2001-12-28 04:54, slennox wrote:<blockquote class="uncited"><div>this commands only works if you got the flag +F<br>the only one with that flag is me.</div></blockquote>Hopefully you're the only one with +m too, because a +m user can add +F to anyone unless you have a proc that filters the chattr command to prevent it.</div></blockquote>DoH<br><br>i'm not that stupid <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>It's just a private bot, unlinked, 1 user with +m and +n, and a few others with flags +h an +A or +B for some commands they're allowed to use.<p>Statistics: Posted by Guest — Fri Dec 28, 2001 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2001-12-28T07:54:00-04:00</updated>

		<published>2001-12-28T07:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3206#p3206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3206#p3206"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3206#p3206"><![CDATA[
<blockquote class="uncited"><div>this commands only works if you got the flag +F<br>the only one with that flag is me.</div></blockquote>Hopefully you're the only one with +m too, because a +m user can add +F to anyone unless you have a proc that filters the chattr command to prevent it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Fri Dec 28, 2001 7:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-27T21:16:00-04:00</updated>

		<published>2001-12-27T21:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3197#p3197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3197#p3197"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3197#p3197"><![CDATA[
Well, it is in the -help output from my wget <a href="http://www.ppslim.ukshells.co.uk/netbots/wget.help" class="postlink">http://www.ppslim.ukshells.co.uk/netbots/wget.help</a><br><br>The problem with your second mwthod of doing it, is that eggdrop re-routes the stdin, stdout and stderr to /dev/null, as 100% closure of them, makes Tcl a little nuts<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Dec 27, 2001 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-27T20:55:00-04:00</updated>

		<published>2001-12-27T20:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3192#p3192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3192#p3192"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3192#p3192"><![CDATA[
<blockquote class="uncited"><div>On 2001-12-27 13:20, Petersen wrote:<br>i'm too tired to figure out whats wrong, but be warned, the way you're writing it is a brilliant way for someone to take full control of your shell on your box that you're sshing to via shell meta characters.</div></blockquote>this commands only works if you got the flag +F<br>the only one with that flag is me.<br><br>and stdragon, i'm trying it out now, didn't find those arguments with the wget -help command, already searched for something like this (but couldn't find it)<br><br>thx for the help guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> (i'm just learning tcl, this is my 3rd day <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile">, the most things i'm getting from other tcl files, but this thing i couldn't find, nor something like this)<br><br>PS: if someone got a good link for a help page or howto or guide or whatever whould be very nice <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Greejtz, Zygo.<br><br>&lt;font size=-1&gt;[ This Message was edited by: Zygomaticum on 2001-12-27 18:03 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu Dec 27, 2001 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-12-27T18:00:00-04:00</updated>

		<published>2001-12-27T18:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3184#p3184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3184#p3184"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3184#p3184"><![CDATA[
Here's an idea.. instead of doing "cd /home/blah/temp" why don't you use the --output-document=FILE option for wget? Or, for even less of a change, use the --directory-prefix=PREFIX option:<br><br>wget --output-document=/home/baa/temp/sheep.zip someurl<br><br>wget --directory-prefix=/home/baa/temp someurl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Dec 27, 2001 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-12-27T16:20:00-04:00</updated>

		<published>2001-12-27T16:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3179#p3179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3179#p3179"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3179#p3179"><![CDATA[
i'm too tired to figure out whats wrong, but be warned, the way you're writing it is a brilliant way for someone to take full control of your shell on your box that you're sshing to via shell meta characters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Thu Dec 27, 2001 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-27T14:22:00-04:00</updated>

		<published>2001-12-27T14:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3176#p3176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3176#p3176"/>
		<title type="html"><![CDATA[.wget fot the wget command !?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3176#p3176"><![CDATA[
Hi.<br><br>I got a problem (again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile">).<br>I'm making a .wget &lt;url&gt; command to use the linux command wget &lt;url&gt;.<br><br>My problem with doing this:<br>if i let wget download it without any dirchange, the file comes into /home/zygo/eggdrop (my eggdrop dir), but i want it in /home/zygo/temp<br>if i do it like this:<br>proc &lt;name&gt; {blablabla}{<br>  set http [lindex $arg 0]<br>  cd /home/zygo/temp<br>  exec wget $http<br>}<br>it works, i get the file in the /home/zygo/temp dir, but when i rehash my eggdrop it quits with error: Config file not founded. (this error is because of the dirchange.)<br>even when i add the command<br>cd /home/zygo/eggdrop<br>or<br>cd /home/zygo/eggdrop/scripts<br>after the exec ... command, i still get the same error when rehashing.<br><br>Now i'm trying to do this by logging in again to the shell with ssh, but i get errors when my eggdrop has to enter the pass.<br>script i use for ssh loging in atm:<br><br>proc pub_wget {nick uhost hand chan arg} {<br>  global sship sshlogin sshpass<br>  set http [lindex $arg 0]<br>  set sshclient [exec which ssh]<br>  set ssh [open "|$sshclient -l $sshlogin $sship" w]             <br>  puts $ssh "$sshpass"    <br>  puts $ssh "cd /home/zygo/temp"<br>  puts $ssh "wget $http"<br>  putserv "NOTICE $nick :File $http successfully put in /home/zygo/temp."<br>  puts $ssh "exit"<br>  close $ssh<br>}<br><br>error i get:<br>[17:13] Userfile loaded, unpacking...<br>zygo@80.56.131.50's password: <br>zygo@80.56.131.50's password: <br>zygo@80.56.131.50's password: <br>[17:13] TCL error [pub_wget]: Pseudo-terminal will not be allocated because stdin is not a terminal.<br>Permission denied, please try again.<br>Permission denied, please try again.<br>Permission denied (publickey,password).<br><br>i still get this error when changing the line:<br>puts $ssh "$sshpass"<br>into:<br>puts $ssh $sshpass<br>and into:<br>puts $ssh "&lt;passtypedout&gt;"<br><br>can someone help me? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Thanx in advance, Zygo.<p>Statistics: Posted by Guest — Thu Dec 27, 2001 2:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
