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

	<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-08-11T05:57:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-08-11T05:57:17-04:00</updated>

		<published>2013-08-11T05:57:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101974#p101974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101974#p101974"/>
		<title type="html"><![CDATA[Exec Shell command with multiline output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101974#p101974"><![CDATA[
if the output has multiple lines, then split it in multiple lines.<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !ftpwho do_ftpwhoproc do_ftpwho {nick uhost hand chan text} {set my_ftpwho [exec ftpwho] foreach line [split $my_ftpwho \n] {puthelp "PRIVMSG $chan :$line"}}</code></pre></div>Something like this should do what you wanted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Aug 11, 2013 5:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MUD]]></name></author>
		<updated>2013-08-10T23:43:24-04:00</updated>

		<published>2013-08-10T23:43:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101973#p101973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101973#p101973"/>
		<title type="html"><![CDATA[Exec Shell command with multiline output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101973#p101973"><![CDATA[
It's been way over 10 years since I've used tcl and eggdrops, but I was trying to get a shell command to execute and display the results that outputs more then one line in the bash but not  in a channel, right now I only get the first line output and stops there.  Can anyone help remind me of what I am doing =)  TIA<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !ftpwho do_ftpwhoproc do_ftpwho {nick uhost hand chan text} {    set my_ftpwho [exec ftpwho]        puthelp "PRIVMSG $chan :$ftpwho"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12272">MUD</a> — Sat Aug 10, 2013 11:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
