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

	<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>2008-07-21T15:11:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2008-07-21T15:11:38-04:00</updated>

		<published>2008-07-21T15:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84103#p84103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84103#p84103"/>
		<title type="html"><![CDATA[exec awk problem with quotes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84103#p84103"><![CDATA[
that doesn't work either.<br>while there's no error in console now the file is simply not changed, it's like awk didn't run at all.<br><br>example "bans-chan.txt":<div class="codebox"><p>Code: </p><pre><code>); ?&gt;</code></pre></div>example tcl:<div class="codebox"><p>Code: </p><pre><code>set awk [list awk -f alfa.awk -v was=");" bans-chan.txt &gt;bans-chan-tmp.txt] eval exec $awk</code></pre></div>the awk command itself is correct as it works in shell<br><br><br>EDIT: Well, never mind I guess, I found another solution (without using awk)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Mon Jul 21, 2008 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-07-21T14:32:23-04:00</updated>

		<published>2008-07-21T14:32:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84101#p84101</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84101#p84101"/>
		<title type="html"><![CDATA[exec awk problem with quotes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84101#p84101"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set awk [list awk -f alfa.awk -v was="array('$mask'" bans-$chan.txt &gt;bans-$chan-tmp.txt]eval exec $awk</code></pre></div>Encapsulate your arguments within <ul> <li>evaluation. See if that helps.<blockquote class="uncited"><div>&lt;speechles&gt; .tcl set a [list awk -f alfa.awk -v was="array('mask'" bans-chan.txt &gt;bans-chan-tmp.txt]<br>&lt;bot&gt; Tcl: awk -f alfa.awk -v was=\"array('mask'\" bans-chan.txt &gt;bans-chan-tmp.txt<br>* I had to strip the $ from your variables as I don't have those set *<br>* It would've worked with them if I had those set... *</div></blockquote></li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jul 21, 2008 2:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2008-07-21T14:24:27-04:00</updated>

		<published>2008-07-21T14:24:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84100#p84100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84100#p84100"/>
		<title type="html"><![CDATA[exec awk problem with quotes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84100#p84100"><![CDATA[
Hi,<br>I need a tcl to start awk like this:<div class="codebox"><p>Code: </p><pre><code>awk -f alfa.awk -v was="array('$mask'" bans-$chan.txt &gt;bans-$chan-tmp.txt</code></pre></div>But when I put it in my script (after exec) like that it complains about "extra characters after close-quote"<br><br>If I escape them (\") I get: Invalid command name """<br><br>I also tried this but that failed as well:<div class="codebox"><p>Code: </p><pre><code>set varname "awk -f alfa.awk -v was=\"array('$mask'\" bans-$chan.txt &gt;bans-$chan-tmp.txt"eval exec $varname</code></pre></div>What's the correct way to escape those quotation chars?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Mon Jul 21, 2008 2:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
