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

	<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>2005-10-02T11:31:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-10-02T11:31:17-04:00</updated>

		<published>2005-10-02T11:31:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56309#p56309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56309#p56309"/>
		<title type="html"><![CDATA[Re: Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56309#p56309"><![CDATA[
<blockquote class="uncited"><div>I want to launch an interactive tcl script from a shell script, but when I try, it seems that the standard input channel gets messed up. For example, the following code:<div class="codebox"><p>Code: </p><pre><code>puts -nonewline stdout "What is your name?: " flush stdout set name [gets stdin]</code></pre></div>returns the following error:<div class="codebox"><p>Code: </p><pre><code>error reading "file0": I/O error while executing "gets stdin"</code></pre></div>..but the error only occurs when I launch the tcl script from a shell script.  It works fine when I run it directly from bash prompt. Any ideas how to fix this?</div></blockquote><br>are you trying to do something like this ?<br><div class="codebox"><p>Code: </p><pre><code>#!/usr/local/bin/tclsh8.4fileevent stdin readable [list [puts STDIN-&gt;[gets stdin]]]vwait _forever_</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 02, 2005 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-30T20:17:16-04:00</updated>

		<published>2005-09-30T20:17:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56244#p56244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56244#p56244"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56244#p56244"><![CDATA[
...and yes, it runs fine for me in both cases: when given as argument to tclsh on the shell prompt, and when tclsh is invoked from a shell script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Sep 30, 2005 8:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-30T19:36:52-04:00</updated>

		<published>2005-09-30T19:36:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56242#p56242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56242#p56242"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56242#p56242"><![CDATA[
<blockquote class="uncited"><div>just a little note... you are aware that your script is running from sh not from bash?!</div></blockquote>on Linux, /bin/sh is merely a symlink to bash<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Sep 30, 2005 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-30T05:19:48-04:00</updated>

		<published>2005-09-30T05:19:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56221#p56221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56221#p56221"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56221#p56221"><![CDATA[
just a little note... you are aware that your script is running from sh not from bash?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Sep 30, 2005 5:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rbautch]]></name></author>
		<updated>2005-09-29T23:25:20-04:00</updated>

		<published>2005-09-29T23:25:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56215#p56215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56215#p56215"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56215#p56215"><![CDATA[
Tivosh is indeed TivoShell, a customized TCL installation for Tivos.  I don't have a Linux PC I can test this on, so can you copy the "test" script from my original post and try to run it from bash?...Then from a simple shell script?  Thanks!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6764">rbautch</a> — Thu Sep 29, 2005 11:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-29T23:07:47-04:00</updated>

		<published>2005-09-29T23:07:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56213#p56213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56213#p56213"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56213#p56213"><![CDATA[
hmm not much information there... what's <em class="text-italics">tivosh</em>? a TiVo shell? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Sep 29, 2005 11:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rbautch]]></name></author>
		<updated>2005-09-29T11:59:46-04:00</updated>

		<published>2005-09-29T11:59:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56191#p56191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56191#p56191"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56191#p56191"><![CDATA[
Here is the shell script, which basically just launches two tcl scripts.  The first tcl script is not interactive, so it runs fine.  The second tcl script chokes when I run it from this script, but works fine when I run it from bash prompt.  Thanks in advance. <div class="codebox"><p>Code: </p><pre><code>#!/bin/shtivosh netconfig.tcltivosh setSSIDwep.tcl</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6764">rbautch</a> — Thu Sep 29, 2005 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-28T12:59:25-04:00</updated>

		<published>2005-09-28T12:59:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56168#p56168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56168#p56168"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56168#p56168"><![CDATA[
post your shell script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 28, 2005 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rbautch]]></name></author>
		<updated>2005-09-25T01:09:35-04:00</updated>

		<published>2005-09-25T01:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56076#p56076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56076#p56076"/>
		<title type="html"><![CDATA[Run a tcl script from a shell script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56076#p56076"><![CDATA[
I want to launch an interactive tcl script from a shell script, but when I try, it seems that the standard input channel gets messed up. For example, the following code:<div class="codebox"><p>Code: </p><pre><code>puts -nonewline stdout "What is your name?: " flush stdout set name [gets stdin]</code></pre></div>returns the following error:<div class="codebox"><p>Code: </p><pre><code>error reading "file0": I/O error while executing "gets stdin"</code></pre></div>..but the error only occurs when I launch the tcl script from a shell script.  It works fine when I run it directly from bash prompt. Any ideas how to fix this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6764">rbautch</a> — Sun Sep 25, 2005 1:09 am</p><hr />
]]></content>
	</entry>
	</feed>
