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

	<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>2007-03-06T13:56:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-06T13:56:14-04:00</updated>

		<published>2007-03-06T13:56:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71041#p71041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71041#p71041"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71041#p71041"><![CDATA[
Pipes and sockets (IP/IPX/Unix/etc all alike) are two completely different concepts, hence there is no "named pipe with socket functions" (unix or otherwize).<br>Pipes are used just like any other file-stream, whereas sockets have a far more complex structure.<br><br>As for your intent to send data from syslogd; a quick check in the manual page would reveal that syslogd allows files, ip/udp, and named pipes to be destination for logmessages. It does not, however, support unix sockets as destination.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Mar 06, 2007 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2007-03-06T11:55:58-04:00</updated>

		<published>2007-03-06T11:55:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71039#p71039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71039#p71039"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71039#p71039"><![CDATA[
I asked for a named pipe which functioned as a socket, UNIX sockets I suppose.<br><br>i want to be able to '|' pipe data from syslogd to a script.<br><br>but since reading from stdin is having some issues.. i wanted to use pipes instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Mar 06, 2007 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-04T22:48:20-04:00</updated>

		<published>2007-03-04T22:48:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71007#p71007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71007#p71007"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71007#p71007"><![CDATA[
Keep in mind that named pipes are "one-way connections", that is, one client must open the fifo in readonly mode, and other client in writeonly mode.<br><br>Btw, if you wanted to work with unix socket, why were you asking for named pipes?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 04, 2007 10:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2007-03-04T21:16:41-04:00</updated>

		<published>2007-03-04T21:16:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71003#p71003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71003#p71003"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71003#p71003"><![CDATA[
I know how to use sockets, it's just that i want a to create a unix socket.<br><br>ok it's<br><div class="codebox"><p>Code: </p><pre><code>socket -server myproc -myaddr 127.0.0.1 1234</code></pre></div>So I assume it's not possible.<br><br>i think maybe mknod might do..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 04, 2007 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-03-04T19:12:16-04:00</updated>

		<published>2007-03-04T19:12:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70996#p70996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70996#p70996"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70996#p70996"><![CDATA[
Perhaps user's code would help: <a href="http://forum.egghelp.org/viewtopic.php?t=13113" class="postlink">socket api - nonblocking tcp made easy</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 04, 2007 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-04T18:52:55-04:00</updated>

		<published>2007-03-04T18:52:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70995#p70995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70995#p70995"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70995#p70995"><![CDATA[
As far as I know, there is no support for unix sockets in tcl.<br>Also, keep in mind that "named pipes" is something completely different from "unix sockets", where the first one uses simple file I/O for communications while the second makes use of the kernels support for socket communication, with the domain AF_UNIX rather than AF_INET (which is used for IP sockets).<br><br>I suppose IP sockets won't cut it for you?<br><br>If you really want unix sockets, you'd have to create some wrapping-code to provide the function calls from the socket-library to the tcl-environment (possibly by creating an eggdrop module).<br>One option, I guess, would be to write your project entirely as a module rather than a tcl-script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 04, 2007 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2007-03-04T17:53:28-04:00</updated>

		<published>2007-03-04T17:53:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70987#p70987</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70987#p70987"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70987#p70987"><![CDATA[
i was thinking of making a script listen on a unix socket.<br>like:<br><div class="codebox"><p>Code: </p><pre><code>socket -server myproc localhost 1234</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 04, 2007 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-03-04T15:48:53-04:00</updated>

		<published>2007-03-04T15:48:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70980#p70980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70980#p70980"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70980#p70980"><![CDATA[
Been a while since I played around with named pipes, but as I recall you create them with 'mknod' or 'mkfifo' and then just use them as regular files:<br><br>Example using two concurrent shell-sessions:<br>Session 1<div class="codebox"><p>Code: </p><pre><code>bash$ mknod /home/myhome/test.fifobash$ ls -l &gt; /home/myhome/test.fifo</code></pre></div>Session 2<div class="codebox"><p>Code: </p><pre><code>bash$ cat /home/myhome/test.fifo-rwxr--r--   1 nml375 nml375    16896 26 maj  2006 network.doc-rw-rw-r--   1 nml375 nml375     1927 11 okt  2005 private-root-pem.crt...</code></pre></div>Should'nt be much different with tcl..<br><br>Or where you thinking of unix sockets?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 04, 2007 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2007-03-04T14:57:59-04:00</updated>

		<published>2007-03-04T14:57:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70978#p70978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70978#p70978"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70978#p70978"><![CDATA[
As far as I know is what you're suggesting only for execution.<br><br><div class="codebox"><p>Code: </p><pre><code>open "|/path/to/binary" r+</code></pre></div>not to make named pipes (sockets)<br><br>such as /tmp/mysql.sock, for example, or would you be so kind explain yourself, ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 04, 2007 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-03-04T00:33:55-04:00</updated>

		<published>2007-03-04T00:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70956#p70956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70956#p70956"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70956#p70956"><![CDATA[
Read about pipelines in the manpage for open:<br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/open.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/open.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Mar 04, 2007 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2007-03-03T14:44:09-04:00</updated>

		<published>2007-03-03T14:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70945#p70945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70945#p70945"/>
		<title type="html"><![CDATA[Piped sockets under tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70945#p70945"><![CDATA[
How do I create a named pipe instead of creating a socket to listen on. I've been searching google, looking through the manual, but I can't find anything about named pipes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Mar 03, 2007 2:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
