<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-11369</id>
	<title>Nabble - MozDev - jslib</title>
	<updated>2009-11-11T09:36:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/MozDev---jslib-f11369.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MozDev---jslib-f11369.html" />
	<subtitle type="html">&lt;a href=&quot;http://jslib.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib&lt;/a&gt; - Javascript libraries for Mozilla applications</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26305329</id>
	<title>Re: Problem with jslib in Firefox</title>
	<published>2009-11-11T09:36:03Z</published>
	<updated>2009-11-11T09:36:03Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; You put your finger on all problems. I muddled around before I had the
&lt;br&gt;&amp;gt; correct library loaded correctly. Then the first thing that worked was
&lt;br&gt;&amp;gt; the Date object which didn't need jslib.init nor include. I then
&lt;br&gt;&amp;gt; erroneously assumed that these instructions were not needed any more in
&lt;br&gt;&amp;gt; the FFox new setup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Script now runs as it used to, that is flawlessly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Yes, I need to do some updating in docs and code as well.
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26305329&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-jslib-in-Firefox-tp26286432p26305329.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26298239</id>
	<title>Re: Problem with jslib in Firefox</title>
	<published>2009-11-11T01:16:02Z</published>
	<updated>2009-11-11T01:16:02Z</updated>
	<author>
		<name>Enno Fennema</name>
	</author>
	<content type="html">Pete Collins wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Enno Fennema wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Firefox 3.x installed extension jslib. In chrome file script like
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; var date = new Date();
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; dump(date + &amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; works fine but unable to get something like
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; var gFile = new File(&amp;quot;/tmp/jslib.dat&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; to work. &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This should work. You are including the correct lib right?
&lt;/div&gt;...
&lt;br&gt;&amp;gt; &amp;nbsp;jslib.init(this);
&lt;br&gt;...
&lt;br&gt;&amp;gt; include (jslib_file);
&lt;br&gt;&lt;br&gt;You put your finger on all problems. I muddled around before I had the
&lt;br&gt;correct library loaded correctly. Then the first thing that worked was
&lt;br&gt;the Date object which didn't need jslib.init nor include. I then
&lt;br&gt;erroneously assumed that these instructions were not needed any more in
&lt;br&gt;the FFox new setup.
&lt;br&gt;&lt;br&gt;Script now runs as it used to, that is flawlessly.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Enno Fennema
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298239&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-jslib-in-Firefox-tp26286432p26298239.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287332</id>
	<title>Re: Problem with jslib in Firefox</title>
	<published>2009-11-10T09:11:15Z</published>
	<updated>2009-11-10T09:11:15Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Enno Fennema wrote:
&lt;br&gt;&amp;gt; On Firefox 3.x installed extension jslib. In chrome file script like
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; var date = new Date();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; dump(date + &amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;gt; works fine but unable to get something like
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; var gFile = new File(&amp;quot;/tmp/jslib.dat&amp;quot;);
&lt;br&gt;&amp;gt; to work.	
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;This should work. You are including the correct lib right?
&lt;br&gt;&lt;br&gt;include (jslib_file);
&lt;br&gt;&lt;br&gt;&lt;br&gt;I have been using jsLib w/ FF 3.x and have had mo problems.
&lt;br&gt;&lt;br&gt;I do know that the top level jslib object is probably broken as for FF 
&lt;br&gt;3.x they changed how top level objects can be exposed to the DOM.
&lt;br&gt;&lt;br&gt;So it is possible that instantiating using:
&lt;br&gt;&lt;br&gt;&amp;nbsp; jslib.init(this);
&lt;br&gt;&lt;br&gt;is broken\ on FF 3.5.x
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-jslib-in-Firefox-tp26286432p26287332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26286432</id>
	<title>Problem with jslib in Firefox</title>
	<published>2009-11-10T08:22:18Z</published>
	<updated>2009-11-10T08:22:18Z</updated>
	<author>
		<name>Enno Fennema</name>
	</author>
	<content type="html">On Firefox 3.x installed extension jslib. In chrome file script like
&lt;br&gt;&amp;nbsp; &amp;nbsp; var date = new Date();
&lt;br&gt;&amp;nbsp; &amp;nbsp; dump(date + &amp;quot;\n&amp;quot;);
&lt;br&gt;works fine but unable to get something like
&lt;br&gt;&amp;nbsp; &amp;nbsp; var gFile = new File(&amp;quot;/tmp/jslib.dat&amp;quot;);
&lt;br&gt;to work.	
&lt;br&gt;&lt;br&gt;May be related to the namespace problem referred to in
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.mozdev.org/pipermail/project_owners/2009-March/012236.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mozdev.org/pipermail/project_owners/2009-March/012236.html&lt;/a&gt;&lt;br&gt;but what is the solution.
&lt;br&gt;&lt;br&gt;jslib did wonders for me under old seamonkey but would like to change to
&lt;br&gt;Firefox now and must get my xul program to work first.
&lt;br&gt;&lt;br&gt;Appreciate any help.
&lt;br&gt;Enno Fennema
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26286432&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-jslib-in-Firefox-tp26286432p26286432.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26153548</id>
	<title>Re: Seamonkey 2 is here</title>
	<published>2009-11-01T10:37:13Z</published>
	<updated>2009-11-01T10:37:13Z</updated>
	<author>
		<name>JAS-11</name>
	</author>
	<content type="html">Pete Collins wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'll update the install.rdf asap.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; jsLib will work w/ any moz distribution.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --pete
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Marcelo wrote:
&lt;br&gt;&amp;gt;&amp;gt; Well, Seamonkey 2.0 Final hit the servers today. I finally migrated my
&lt;br&gt;&amp;gt;&amp;gt; profile. I'm going to miss the Pinball theme and Multizilla, but...
&lt;br&gt;&amp;gt;&amp;gt; well, the new Gecko engine is worth it. I hope eventually to replace
&lt;br&gt;&amp;gt;&amp;gt; most of their functionality with other extensions. However...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Many extensions still have to be checked/updated and tagged as
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Seamonkey 2 compatible.&amp;quot; JSLib, for instance, only installs by setting
&lt;br&gt;&amp;gt;&amp;gt; extensions.checkCompatibility to &amp;quot;False&amp;quot; on about:config... but then it
&lt;br&gt;&amp;gt;&amp;gt; seems to run fine. Tagzilla (the main reason I use JSlib) has a modified
&lt;br&gt;&amp;gt;&amp;gt; version at xsidebar.mozdev.org that is tagged as &amp;quot;2.0 compatible&amp;quot;, and
&lt;br&gt;&amp;gt;&amp;gt; seems to run fine too. But the &amp;quot;official&amp;quot; version complains (although it
&lt;br&gt;&amp;gt;&amp;gt; probably works).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Marcelo
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -=-=-
&lt;br&gt;&amp;gt;&amp;gt; ... &amp;lt;------------- Space for SALE! ------------&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; * TagZilla 0.0661 * &lt;a href=&quot;http://tagzilla.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tagzilla.mozdev.org&lt;/a&gt;&amp;nbsp;on Seamonkey 2
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26153548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Which version of Jslib are you using, I run Win XP Pro SM 2.0?
&lt;br&gt;Thanks
&lt;br&gt;JAS
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26153548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2-is-here-tp26087890p26153548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26095003</id>
	<title>Re: Seamonkey 2 is here</title>
	<published>2009-10-28T06:52:35Z</published>
	<updated>2009-10-28T06:52:35Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">I'll update the install.rdf asap.
&lt;br&gt;&lt;br&gt;jsLib will work w/ any moz distribution.
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Marcelo wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Well, Seamonkey 2.0 Final hit the servers today. I finally migrated my
&lt;br&gt;&amp;gt; profile. I'm going to miss the Pinball theme and Multizilla, but...
&lt;br&gt;&amp;gt; well, the new Gecko engine is worth it. I hope eventually to replace
&lt;br&gt;&amp;gt; most of their functionality with other extensions. However...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Many extensions still have to be checked/updated and tagged as
&lt;br&gt;&amp;gt; &amp;quot;Seamonkey 2 compatible.&amp;quot; JSLib, for instance, only installs by setting
&lt;br&gt;&amp;gt; extensions.checkCompatibility to &amp;quot;False&amp;quot; on about:config... but then it
&lt;br&gt;&amp;gt; seems to run fine. Tagzilla (the main reason I use JSlib) has a modified
&lt;br&gt;&amp;gt; version at xsidebar.mozdev.org that is tagged as &amp;quot;2.0 compatible&amp;quot;, and
&lt;br&gt;&amp;gt; seems to run fine too. But the &amp;quot;official&amp;quot; version complains (although it
&lt;br&gt;&amp;gt; probably works).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Marcelo
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -=-=-
&lt;br&gt;&amp;gt; ... &amp;lt;------------- Space for SALE! ------------&amp;gt;
&lt;br&gt;&amp;gt; * TagZilla 0.0661 * &lt;a href=&quot;http://tagzilla.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tagzilla.mozdev.org&lt;/a&gt;&amp;nbsp;on Seamonkey 2
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26095003&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26095003&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2-is-here-tp26087890p26095003.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26087890</id>
	<title>Seamonkey 2 is here</title>
	<published>2009-10-27T18:24:04Z</published>
	<updated>2009-10-27T18:24:04Z</updated>
	<author>
		<name>Marcelo-14</name>
	</author>
	<content type="html">Well, Seamonkey 2.0 Final hit the servers today. I finally migrated my
&lt;br&gt;profile. I'm going to miss the Pinball theme and Multizilla, but...
&lt;br&gt;well, the new Gecko engine is worth it. I hope eventually to replace
&lt;br&gt;most of their functionality with other extensions. However...
&lt;br&gt;&lt;br&gt;Many extensions still have to be checked/updated and tagged as
&lt;br&gt;&amp;quot;Seamonkey 2 compatible.&amp;quot; JSLib, for instance, only installs by setting
&lt;br&gt;extensions.checkCompatibility to &amp;quot;False&amp;quot; on about:config... but then it
&lt;br&gt;seems to run fine. Tagzilla (the main reason I use JSlib) has a modified
&lt;br&gt;version at xsidebar.mozdev.org that is tagged as &amp;quot;2.0 compatible&amp;quot;, and
&lt;br&gt;seems to run fine too. But the &amp;quot;official&amp;quot; version complains (although it
&lt;br&gt;probably works).
&lt;br&gt;&lt;br&gt;Marcelo
&lt;br&gt;&lt;br&gt;&lt;br&gt;-=-=-
&lt;br&gt;... &amp;lt;------------- Space for SALE! ------------&amp;gt;
&lt;br&gt;* TagZilla 0.0661 * &lt;a href=&quot;http://tagzilla.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tagzilla.mozdev.org&lt;/a&gt;&amp;nbsp;on Seamonkey 2
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26087890&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2-is-here-tp26087890p26087890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26005570</id>
	<title>Sockets UDP and hide browser windows</title>
	<published>2009-10-22T00:56:23Z</published>
	<updated>2009-10-22T00:56:23Z</updated>
	<author>
		<name>dongabda</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=ES link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;It&amp;#8217;s possible receive/send UDP sockets with JSlib or
must be tcp sockets?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;It&amp;#8217;s possible hide browser Windows with JSlib? &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Best regards,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Daniel&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26005570&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Sockets-UDP-and-hide-browser-windows-tp26005570p26005570.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25761627</id>
	<title>Re: Seamonkey 2.0 beta 1?</title>
	<published>2009-10-05T18:13:01Z</published>
	<updated>2009-10-05T18:13:01Z</updated>
	<author>
		<name>JAS-11</name>
	</author>
	<content type="html">Marcelo wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Interviewed by CNN on 26/9/2009 21:10, JAS told the world:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I am using 2.0b2 version of Seamonkey and I also wish to use tagZilla
&lt;br&gt;&amp;gt;&amp;gt; but can not install the jslib. How does one disable the Extension
&lt;br&gt;&amp;gt;&amp;gt; Version Check and where do you find it? &amp;nbsp;I am running XP Pro.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; These are the instructions for Firefox, but they work the same on
&lt;br&gt;&amp;gt; Seamonkey 2:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dotnetwizard.net/soft-apps/firefox-3-beta-4-disabling-extension-compatibility-check/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dotnetwizard.net/soft-apps/firefox-3-beta-4-disabling-extension-compatibility-check/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Marcelo
&lt;/div&gt;Thanks for the reply and info. It done the job.
&lt;br&gt;&lt;br&gt;JAS
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25761627&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p25761627.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25685119</id>
	<title>Re: Seamonkey 2.0 beta 1?</title>
	<published>2009-09-30T09:59:05Z</published>
	<updated>2009-09-30T09:59:05Z</updated>
	<author>
		<name>Marcelo-14</name>
	</author>
	<content type="html">Interviewed by CNN on 26/9/2009 21:10, JAS told the world:
&lt;br&gt;&lt;br&gt;&amp;gt; I am using 2.0b2 version of Seamonkey and I also wish to use tagZilla
&lt;br&gt;&amp;gt; but can not install the jslib. How does one disable the Extension
&lt;br&gt;&amp;gt; Version Check and where do you find it? &amp;nbsp;I am running XP Pro.
&lt;br&gt;&lt;br&gt;These are the instructions for Firefox, but they work the same on
&lt;br&gt;Seamonkey 2:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dotnetwizard.net/soft-apps/firefox-3-beta-4-disabling-extension-compatibility-check/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dotnetwizard.net/soft-apps/firefox-3-beta-4-disabling-extension-compatibility-check/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Marcelo
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25685119&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p25685119.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25629852</id>
	<title>Re: Seamonkey 2.0 beta 1?</title>
	<published>2009-09-26T17:10:11Z</published>
	<updated>2009-09-26T17:10:11Z</updated>
	<author>
		<name>JAS-11</name>
	</author>
	<content type="html">Marcelo wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Interviewed by CNN on 4/8/2009 22:14, Marcelo told the world:
&lt;br&gt;&amp;gt;&amp;gt; Is there a build compatible with Seamonkey 2.0 beta 1? I wanted to try
&lt;br&gt;&amp;gt;&amp;gt; the Suiterunner build, but one of the stumbling blocks was jslib.
&lt;br&gt;&amp;gt;&amp;gt; Without jslib, I can't use another extension I really like...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Update: I tried disabling the Extension Version Check on Seamonkey 2
&lt;br&gt;&amp;gt; beta 1, and installed JSLib and TagZilla. Despite both being listed as
&lt;br&gt;&amp;gt; &amp;quot;incompatible,&amp;quot; they seem to be working normally. So, if there is a
&lt;br&gt;&amp;gt; maintainer for JSLib, it seems that an official Seamonkey 2-compatible
&lt;br&gt;&amp;gt; build is not out of question.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Marcelo
&lt;/div&gt;I am using 2.0b2 version of Seamonkey and I also wish to use tagZilla
&lt;br&gt;but can not install the jslib. How does one disable the Extension
&lt;br&gt;Version Check and where do you find it? &amp;nbsp;I am running XP Pro.
&lt;br&gt;Thank you,
&lt;br&gt;JAS
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25629852&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p25629852.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25482668</id>
	<title>Re: Jslib socket program...</title>
	<published>2009-09-16T16:21:58Z</published>
	<updated>2009-09-16T16:21:58Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">Yea, the socket code is pretty old at this point.
&lt;br&gt;&lt;br&gt;I update jsLib based on when I need it updated.
&lt;br&gt;&lt;br&gt;I'll gladly take a patch if you have one.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;&lt;br&gt;sunil sarolkar wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone,
&lt;br&gt;&amp;gt; I have just installed jslib on firefox 3.5. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to do p2p communication using socket But as soon as me and my 
&lt;br&gt;&amp;gt; friend try to do socket communication by pressing open socket we get 
&lt;br&gt;&amp;gt; status as socket disconnected...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have done some changes to it for continuously listening to socket, 
&lt;br&gt;&amp;gt; changes are as follows
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;!DOCTYPE window&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;window id=&amp;quot;jslib-socket-test&amp;quot; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; title=&amp;quot;jslib Socket Test&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; style=&amp;quot;background-color: #cccccc; &amp;nbsp;width: 500px;&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:html=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns=&amp;quot;&lt;a href=&quot;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; onload=&amp;quot;initialize();&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script type=&amp;quot;application/x-javascript&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; jslib.init(this);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; JS_LIB_DEBUG = true;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; jslibTurnDumpOn();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // enablePrivilege is required if not running chrome'd
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // (other tweaks might apply, check out public.mozdev.jslib)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;netscape.security.PrivilegeManager.enablePrivilege(&amp;quot;UniversalXPConnect&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; include(jslib_socket);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch( e ) { alert( e ); }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var gSocket = new Socket;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var hostElement;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var portElement;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var sendMsg;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var socketResults;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var statusMsg;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function initialize()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hostElement = document.getElementById( &amp;quot;host&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; portElement = document.getElementById( &amp;quot;port&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sendMsg = document.getElementById( &amp;quot;sendMsg&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loading = document.getElementById( &amp;quot;loading&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; socketResults = document.getElementById( &amp;quot;socketResults&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; statusMsg = document.getElementById( &amp;quot;statusMsg&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setInterval(function(){if( !gSocket.isConnected
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; )loading.value=&amp;quot;Not connected&amp;quot;; else loading.value=&amp;quot;Connected&amp;quot;;},100);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function closeSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gSocket.close();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; statusMsg.value = &amp;quot;socket was closed&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function openSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( gSocket.isConnected )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var host = hostElement.value;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var port = portElement.value;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gSocket.open( host, port, true );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;statusMsg.value = &amp;quot;an attempt was made to open the socket&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function receiveSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;bytesAvailable = gSocket.available();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( gSocket.isConnected )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; socketData = gSocket.read( bytesAvailable );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if(socketData.length!=0){
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; socketResults.value = &amp;quot;[&amp;quot; + socketData + &amp;quot;]\nLength: &amp;quot; + 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;socketData.length;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//socketResults.value = &amp;quot;the socket is closed&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function startReceiving(){
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; setInterval(receiveSocket,100);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function sendSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theMsg = sendMsg.value;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gSocket.write( theMsg+&amp;quot;\0&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; statusMsg.value = &amp;quot;sent [&amp;quot; + theMsg + &amp;quot;]&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function testSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; statusMsg.value = ( gSocket.isAlive() 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ? &amp;quot;socket is connected&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; : &amp;quot;socket is not connected&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; function availableSocket()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; statusMsg.value = ( gSocket.isAlive()
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ? &amp;quot;socket has &amp;quot; + gSocket.available() + &amp;quot; bytes pending&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; : &amp;quot;socket is not connected&amp;quot; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;vbox flex=&amp;quot;1&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label control=&amp;quot;host&amp;quot; value=&amp;quot;Host:&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textbox id=&amp;quot;host&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label control=&amp;quot;port&amp;quot; value=&amp;quot;Port:&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textbox id=&amp;quot;port&amp;quot; value=&amp;quot;3000&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label control=&amp;quot;statusMsg&amp;quot; value=&amp;quot;Status:&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textbox id=&amp;quot;statusMsg&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label control=&amp;quot;sendMsg&amp;quot; value=&amp;quot;Send:&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textbox id=&amp;quot;sendMsg&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label control=&amp;quot;socketResults&amp;quot; value=&amp;quot;Response:&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;textbox id=&amp;quot;socketResults&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label id=&amp;quot;loading&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/vbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;vbox flex=&amp;quot;0&amp;quot; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;spacer flex=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Open&amp;quot; oncommand=&amp;quot;openSocket();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Send&amp;quot; oncommand=&amp;quot;sendSocket();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Receive&amp;quot; oncommand=&amp;quot;startReceiving();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Connected?&amp;quot; oncommand=&amp;quot;testSocket();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Available?&amp;quot; oncommand=&amp;quot;availableSocket();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button label=&amp;quot;Close&amp;quot; oncommand=&amp;quot;closeSocket();&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;spacer flex=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/vbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/hbox&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/window&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; host - 1 &amp;lt;&lt;a href=&quot;http://google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://google.com&lt;/a&gt;&amp;gt;27.0.0.1
&lt;br&gt;&amp;gt; port - 3000
&lt;br&gt;&amp;gt; send- 
&lt;br&gt;&amp;gt; pressed open button
&lt;br&gt;&amp;gt; pressed receive button //will start listening, I have modified the code
&lt;br&gt;&amp;gt; pressed send button
&lt;br&gt;&amp;gt; I get some garbage value as response
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When me and my friend tried to do socket communication using our ip 
&lt;br&gt;&amp;gt; and port no 3000
&lt;br&gt;&amp;gt; (Port has already been forwarded --other program written in python 
&lt;br&gt;&amp;gt; works perfectly on port 3000)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But as soon as we open the socket we get status as socket is 
&lt;br&gt;&amp;gt; disconnected...
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do we need to firefox for permission to create sockets. If yes how 
&lt;br&gt;&amp;gt; should we tell it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for any help... &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25482668&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25482668&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jslib-socket-program...-tp25474065p25482668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25474065</id>
	<title>Jslib socket program...</title>
	<published>2009-09-16T07:44:51Z</published>
	<updated>2009-09-16T07:44:51Z</updated>
	<author>
		<name>spsarolkar</name>
	</author>
	<content type="html">Hello everyone,&lt;div&gt;I have just installed jslib on firefox 3.5. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I want to do p2p communication using socket But as soon as me and my friend try to do socket communication by pressing open socket we get status as socket disconnected...&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have done some changes to it for continuously listening to socket, changes are as follows&lt;/div&gt;&lt;div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&amp;lt;!DOCTYPE window&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&amp;lt;window id=&amp;quot;jslib-socket-test&amp;quot; &lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  title=&amp;quot;jslib Socket Test&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  style=&amp;quot;background-color: #cccccc;  width: 500px;&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  xmlns:html=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  xmlns=&amp;quot;&lt;a href=&quot;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&lt;/a&gt;&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  onload=&amp;quot;initialize();&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;script type=&amp;quot;application/x-javascript&amp;quot;&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;jslib.init(this);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;JS_LIB_DEBUG = true;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;jslibTurnDumpOn();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    try {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      // enablePrivilege is required if not running chrome&amp;#39;d&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      // (other tweaks might apply, check out public.mozdev.jslib)&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      netscape.security.PrivilegeManager.enablePrivilege(&amp;quot;UniversalXPConnect&amp;quot;);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      include(jslib_socket);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    catch( e ) { alert( e ); }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var gSocket = new Socket;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var hostElement;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var portElement;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var sendMsg;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var socketResults;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    var statusMsg;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function initialize()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      hostElement = document.getElementById( &amp;quot;host&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      portElement = document.getElementById( &amp;quot;port&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      sendMsg = document.getElementById( &amp;quot;sendMsg&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      loading = document.getElementById( &amp;quot;loading&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      socketResults = document.getElementById( &amp;quot;socketResults&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      statusMsg = document.getElementById( &amp;quot;statusMsg&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      setInterval(function(){if( !gSocket.isConnected )loading.value=&amp;quot;Not connected&amp;quot;; else loading.value=&amp;quot;Connected&amp;quot;;},100);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function closeSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      gSocket.close();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      statusMsg.value = &amp;quot;socket was closed&amp;quot;;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function openSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      if( gSocket.isConnected )&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        return;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      var host = hostElement.value;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      var port = portElement.value;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      gSocket.open( host, port, true );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  statusMsg.value = &amp;quot;an attempt was made to open the socket&amp;quot;;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function receiveSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  bytesAvailable = gSocket.available();&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  if( gSocket.isConnected )&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;socketData = gSocket.read( bytesAvailable );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;if(socketData.length!=0){&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          socketResults.value = &amp;quot;[&amp;quot; + socketData + &amp;quot;]\nLength: &amp;quot; + &lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  socketData.length;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;  &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    else&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;    //socketResults.value = &amp;quot;the socket is closed&amp;quot;;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function startReceiving(){&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;setInterval(receiveSocket,100);&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function sendSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      theMsg = sendMsg.value;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      gSocket.write( theMsg+&amp;quot;\0&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      statusMsg.value = &amp;quot;sent [&amp;quot; + theMsg + &amp;quot;]&amp;quot;;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    function testSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    {&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;statusMsg.value = ( gSocket.isAlive() &lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;? &amp;quot;socket is connected&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;: &amp;quot;socket is not connected&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    }&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;function availableSocket()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;statusMsg.value = ( gSocket.isAlive()&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;? &amp;quot;socket has &amp;quot; + gSocket.available() + &amp;quot; bytes pending&amp;quot;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;: &amp;quot;socket is not connected&amp;quot; );&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &amp;lt;vbox flex=&amp;quot;1&amp;quot;&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label control=&amp;quot;host&amp;quot; value=&amp;quot;Host:&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          &amp;lt;textbox id=&amp;quot;host&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label control=&amp;quot;port&amp;quot; value=&amp;quot;Port:&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          &amp;lt;textbox id=&amp;quot;port&amp;quot; value=&amp;quot;3000&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label control=&amp;quot;statusMsg&amp;quot; value=&amp;quot;Status:&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          &amp;lt;textbox id=&amp;quot;statusMsg&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label control=&amp;quot;sendMsg&amp;quot; value=&amp;quot;Send:&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          &amp;lt;textbox id=&amp;quot;sendMsg&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label control=&amp;quot;socketResults&amp;quot; value=&amp;quot;Response:&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
          &amp;lt;textbox id=&amp;quot;socketResults&amp;quot; value=&amp;quot;&amp;quot; flex=&amp;quot;1&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
        &amp;lt;label id=&amp;quot;loading&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &amp;lt;/vbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &amp;lt;vbox flex=&amp;quot;0&amp;quot; &amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;spacer flex=&amp;quot;1&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Open&amp;quot; oncommand=&amp;quot;openSocket();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Send&amp;quot; oncommand=&amp;quot;sendSocket();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Receive&amp;quot; oncommand=&amp;quot;startReceiving();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Connected?&amp;quot; oncommand=&amp;quot;testSocket();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Available?&amp;quot; oncommand=&amp;quot;availableSocket();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;button label=&amp;quot;Close&amp;quot; oncommand=&amp;quot;closeSocket();&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
      &amp;lt;spacer flex=&amp;quot;1&amp;quot; /&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
    &amp;lt;/vbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
  &amp;lt;/hbox&amp;gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; &quot;&gt;
&amp;lt;/window&amp;gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;host - &lt;a href=&quot;http://google.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1&lt;/a&gt;27.0.0.1&lt;/div&gt;
&lt;div&gt;port - 3000&lt;/div&gt;&lt;div&gt;send- &lt;/div&gt;&lt;div&gt;pressed open button&lt;/div&gt;&lt;div&gt;pressed receive button //will start listening, I have modified the code&lt;/div&gt;&lt;div&gt;pressed send button&lt;/div&gt;&lt;div&gt;I get some garbage value as response&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;When me and my friend tried to do socket communication using our ip and port no 3000&lt;/div&gt;&lt;div&gt;(Port has already been forwarded --other program written in python works perfectly on port 3000)&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;But as soon as we open the socket we get status as socket is disconnected...&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Do we need to firefox for permission to create sockets. If yes how should we tell it.&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for any help...  &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25474065&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jslib-socket-program...-tp25474065p25474065.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25243750</id>
	<title>Re: jsLib</title>
	<published>2009-09-01T09:42:50Z</published>
	<updated>2009-09-01T09:42:50Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Fails:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,
&lt;br&gt;&amp;gt; &amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Try this:
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,[&amp;quot;c:\\incoming\\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;]);
&lt;br&gt;&lt;br&gt;Wrapping the second arg in an array ...
&lt;br&gt;&lt;br&gt;Also escape the backslashes ...
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25243750&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsLib-tp25197132p25243750.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25231847</id>
	<title>Re: jsLib</title>
	<published>2009-08-31T16:11:02Z</published>
	<updated>2009-08-31T16:11:02Z</updated>
	<author>
		<name>pd-10</name>
	</author>
	<content type="html">On Tue, Sep 1, 2009 at 2:38 AM, Pete Collins &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25231847&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pete@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; however even though that application takes a file path as an argument when run from the Windows XP cmd prompt, I can't get this (for example) to work:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;  fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,        &amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks again for your great work on jsLib everyone, any help would be greatly appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; work correctly?
&lt;/div&gt;&lt;br&gt;Hi Pete, thanks for your reply
&lt;br&gt;&lt;br&gt;Yes it does. I actually screwed up my example a little. Here's more:
&lt;br&gt;&lt;br&gt;Works:
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\mplayerc\\mplayerc.exe&amp;quot;);
&lt;br&gt;&lt;br&gt;Fails:
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,
&lt;br&gt;&amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,
&lt;br&gt;&amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;, &amp;quot;c:\incoming\RushS2E7.avi&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;,
&lt;br&gt;&amp;quot;c:\\incoming\\RushS2E7.avi&amp;quot;);
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\mplayerc\\mplayerc.exe&amp;quot;,
&lt;br&gt;&amp;quot;c:\\incoming\\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\mplayerc\\mplayerc.exe&amp;quot;,
&lt;br&gt;&amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\mplayerc\\mplayerc.exe&amp;quot;, &amp;quot;c:\incoming\RushS2E7.avi&amp;quot;);
&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\mplayerc\\mplayerc.exe&amp;quot;, &amp;quot;c:\\incoming\\RushS2E7.avi&amp;quot;);
&lt;br&gt;&lt;br&gt;So 8.3 filenames and escaping backlashes do not seem to help.
&lt;br&gt;&lt;br&gt;Both programs launch without any secondary parameter. It's possible
&lt;br&gt;mplayerc.exe needs another /open or /play parameter but it definitely
&lt;br&gt;takes command line params and I just tested it without /open or /play
&lt;br&gt;from the command prompt and it works fine.
&lt;br&gt;&lt;br&gt;I've looked at the FileUtils.js run method and there's code that
&lt;br&gt;provides errors but I'm not seeing any errors in he Error Console.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;pd
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; --pete
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;&amp;gt; www.mozdevgroup.com
&lt;br&gt;&amp;gt; Mozilla Software Development Solutions
&lt;br&gt;&amp;gt; tel: 1-719-302-5811
&lt;br&gt;&amp;gt; fax: 1-719-302-5813
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25231847&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25231847&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsLib-tp25197132p25231847.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25226480</id>
	<title>Re: jsLib</title>
	<published>2009-08-31T09:38:39Z</published>
	<updated>2009-08-31T09:38:39Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; however even though that application takes a file path as an argument when run from the Windows XP cmd prompt, I can't get this (for example) to work:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks again for your great work on jsLib everyone, any help would be greatly appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Does
&lt;br&gt;&lt;br&gt;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;);
&lt;br&gt;&lt;br&gt;work correctly?
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25226480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsLib-tp25197132p25226480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25226411</id>
	<title>Re: Seamonkey 2.0 beta 1?</title>
	<published>2009-08-31T09:34:20Z</published>
	<updated>2009-08-31T09:34:20Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">Yea, for seamonkey I just need to update the install.rdf.
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Marcelo wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Interviewed by CNN on 4/8/2009 22:14, Marcelo told the world:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Is there a build compatible with Seamonkey 2.0 beta 1? I wanted to try
&lt;br&gt;&amp;gt;&amp;gt; the Suiterunner build, but one of the stumbling blocks was jslib.
&lt;br&gt;&amp;gt;&amp;gt; Without jslib, I can't use another extension I really like...
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Update: I tried disabling the Extension Version Check on Seamonkey 2
&lt;br&gt;&amp;gt; beta 1, and installed JSLib and TagZilla. Despite both being listed as
&lt;br&gt;&amp;gt; &amp;quot;incompatible,&amp;quot; they seem to be working normally. So, if there is a
&lt;br&gt;&amp;gt; maintainer for JSLib, it seems that an official Seamonkey 2-compatible
&lt;br&gt;&amp;gt; build is not out of question.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Marcelo
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25226411&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25226411&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p25226411.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25198454</id>
	<title>Re: Seamonkey 2.0 beta 1?</title>
	<published>2009-08-28T16:27:46Z</published>
	<updated>2009-08-28T16:27:46Z</updated>
	<author>
		<name>Marcelo-14</name>
	</author>
	<content type="html">Interviewed by CNN on 4/8/2009 22:14, Marcelo told the world:
&lt;br&gt;&amp;gt; Is there a build compatible with Seamonkey 2.0 beta 1? I wanted to try
&lt;br&gt;&amp;gt; the Suiterunner build, but one of the stumbling blocks was jslib.
&lt;br&gt;&amp;gt; Without jslib, I can't use another extension I really like...
&lt;br&gt;&lt;br&gt;Update: I tried disabling the Extension Version Check on Seamonkey 2
&lt;br&gt;beta 1, and installed JSLib and TagZilla. Despite both being listed as
&lt;br&gt;&amp;quot;incompatible,&amp;quot; they seem to be working normally. So, if there is a
&lt;br&gt;maintainer for JSLib, it seems that an official Seamonkey 2-compatible
&lt;br&gt;build is not out of question.
&lt;br&gt;&lt;br&gt;Marcelo
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25198454&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p25198454.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25197132</id>
	<title>jsLib</title>
	<published>2009-08-28T01:02:02Z</published>
	<updated>2009-08-28T01:02:02Z</updated>
	<author>
		<name>pd-13</name>
	</author>
	<content type="html">Hi everyone
&lt;br&gt;&lt;br&gt;Firstly, thank you all kindly for the jsLib library. It's made a little dream of mine come true. For a long time I've been following Planet Mozilla daily, seeing FUEL come and go, all the time having a mind's eye image of that red jsLib icon but not really knowing what it was. Finally I've got my head around it and it's exactly what I am after and have been for so long. I come from a Perl/HTML/JS/CSS web design background and I've wanted to convert that into working with Mozilla code for a long time but obviously Perl is the glue in those skills and there's nothing in the Mozilla code that runs Perl.
&lt;br&gt;&lt;br&gt;Anyway, thanks again for your library, it's excellent.
&lt;br&gt;&lt;br&gt;Could you please tell me what the valid arguments are for the FileUtils.run() API method? In general I think the doco for jsLib is quite good but could be better. Maybe I can help as I learn? It would be good to have more examples than the only ones I can find on this brilliant page:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://www.mozdevgroup.com/docs/pete/jslib.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdevgroup.com/docs/pete/jslib.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;BTW that is the most sensible perspective I've seen regarding working with Mozilla's code base. It sums up the problem with having to write 'infrastructure' code perfectly.
&lt;br&gt;&lt;br&gt;I've grabbed the example from there and I can use it to run a program with a line like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;);
&lt;br&gt;&lt;br&gt;however even though that application takes a file path as an argument when run from the Windows XP cmd prompt, I can't get this (for example) to work:
&lt;br&gt;&lt;br&gt;&amp;nbsp;fu.run(&amp;quot;c:\\Progra~1\\GRETECH\\GomPla~1\\GOM.exe&amp;quot;, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;c:\incoming\Leverage.S02E07.The.Two.Live.Crew.Job.HDTV.XviD-FQM.avi&amp;quot;);
&lt;br&gt;&lt;br&gt;Thanks again for your great work on jsLib everyone, any help would be greatly appreciated.
&lt;br&gt;&lt;br&gt;pd 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25197132&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsLib-tp25197132p25197132.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24819138</id>
	<title>Seamonkey 2.0 beta 1?</title>
	<published>2009-08-04T18:14:01Z</published>
	<updated>2009-08-04T18:14:01Z</updated>
	<author>
		<name>Marcelo-14</name>
	</author>
	<content type="html">Is there a build compatible with Seamonkey 2.0 beta 1? I wanted to try
&lt;br&gt;the Suiterunner build, but one of the stumbling blocks was jslib.
&lt;br&gt;Without jslib, I can't use another extension I really like...
&lt;br&gt;&lt;br&gt;Marcelo
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24819138&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Seamonkey-2.0-beta-1--tp24819138p24819138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23560531</id>
	<title>Re: Is jslib compatible with firefox 3.x?</title>
	<published>2009-05-15T07:06:39Z</published>
	<updated>2009-05-15T07:06:39Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">Yes it it ...
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;&lt;br&gt;jerry tan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, peter,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to know if I can use jslib when write extension for firefox 3.x?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23560531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23560531&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-jslib-compatible-with-firefox-3.x--tp23560431p23560531.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23560431</id>
	<title>Is jslib compatible with firefox 3.x?</title>
	<published>2009-05-14T20:55:40Z</published>
	<updated>2009-05-14T20:55:40Z</updated>
	<author>
		<name>Jerry Tan-2</name>
	</author>
	<content type="html">Hi, peter,
&lt;br&gt;&lt;br&gt;I want to know if I can use jslib when write extension for firefox 3.x?
&lt;br&gt;&lt;br&gt;thanks.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23560431&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-jslib-compatible-with-firefox-3.x--tp23560431p23560431.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22952367</id>
	<title>Antwort: Re: Antwort: Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-08T07:55:24Z</published>
	<updated>2009-04-08T07:55:24Z</updated>
	<author>
		<name>Peter Leugner</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;I can't answer your first question, why dont' you put &lt;br&gt;
&lt;br&gt;
ls |  myprog | nc localhost 6669&lt;br&gt;
&lt;br&gt;
in a shell script und start this from C. maybe this works.&lt;br&gt;
&lt;br&gt;
As for your second question:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;a href=&quot;https://developer.mozilla.org/en/Code_snippets/File_I%2f%2fO#Getting_special_files&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en/Code_snippets/File_I%2f%2fO#Getting_special_files&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
regards,&lt;br&gt;
&lt;br&gt;
Peter Leugner&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
Leiter IT Anwendungsentwicklung&lt;br&gt;
Tel.: +49 (0) 89 45 06 63 26&lt;br&gt;
Fax: +49 (0) 89 45 06 63 81&lt;br&gt;
e-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pleugner@...&lt;/a&gt;&lt;br&gt;
Web: www.as-computer.de&lt;br&gt;
&lt;br&gt;
AS Computer Consulting &amp;amp; Service GmbH&lt;br&gt;
Sitz: München&lt;br&gt;
Geschäftsführer: Dipl.-Ing. (FH) Andreas Erhart &lt;br&gt;
Register: München HRB 111 507&lt;br&gt;
&lt;br&gt;
&lt;img width=&quot;16&quot; height=&quot;16&quot; src=&quot;http://old.nabble.com/attachment/22952367/0/graycol.gif&quot; border=&quot;0&quot; alt=&quot;Inaktiv: Details verbergen für pawan_sin99 ---04/08/2009 16:04:50---I started sever its working fine...with command line... Now&quot;&gt;&lt;font color=&quot;#424282&quot;&gt;pawan_sin99 ---04/08/2009 16:04:50---I started sever its working fine...with command line... Now I made a c program which do&lt;/font&gt;&lt;br&gt;
&lt;br&gt;

&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Von:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;pawan_sin99 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PAWANthethunder@...&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;An:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib@...&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Datum:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;04/08/2009 16:04&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Betreff:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;Re: [Jslib] Antwort: Re: Executing unix command ( such as ls ) from the jslib&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Gesendet von:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22952367/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib-bounces@...&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;hr width=&quot;100%&quot; size=&quot;2&quot; align=&quot;left&quot; noshade style=&quot;color:#8091A5; &quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;br&gt;
I started sever its working fine...with command line...&lt;br&gt;
Now I made a c program which do &lt;br&gt;
system(ls | nc localhost 6669);&lt;br&gt;
The above statement is working fine...&lt;br&gt;
&lt;br&gt;
But when I do,&lt;br&gt;
system( ls | &amp;nbsp;myprog | nc localhost 6669) ;&lt;br&gt;
&lt;br&gt;
myprog is in the bash file PATH of my shell....but here the system command&lt;br&gt;
does not find myprog path......means it is not including the PATH of the&lt;br&gt;
bash of shell...So After lot of search also I cannot able to debug this&lt;br&gt;
error....&lt;br&gt;
&lt;br&gt;
So , how to include shell enviroment to my program..Is there anyway of doing&lt;br&gt;
that or any other method by which I am able to do such stuff?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Secondly,,,,.when I use &lt;br&gt;
&lt;br&gt;
var file = new File(&amp;quot;/home/pawan/text.txt&amp;quot;).&lt;br&gt;
 It creates file named test.txt in home of user pawan....&lt;br&gt;
&lt;br&gt;
function createFile()&lt;br&gt;
{ &amp;nbsp;&lt;br&gt;
 &amp;nbsp;jslib.init(this);&lt;br&gt;
 &amp;nbsp;include (jslib_file);&lt;br&gt;
 &amp;nbsp;var file = new File(&amp;quot;test.txt&amp;quot;);&lt;br&gt;
 &amp;nbsp;file.open(&amp;quot;w&amp;quot;);&lt;br&gt;
 &amp;nbsp;file.write(&amp;quot;This is a first file created by browser\n&amp;quot;);&lt;br&gt;
 &amp;nbsp;file.close();&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
This program I am using to create file ...but it does not create file..I&lt;br&gt;
don't know y ...May be its creating the file from where firefox is&lt;br&gt;
invoked...&lt;br&gt;
&lt;br&gt;
But how to create file in my chrome://somename/content/&lt;br&gt;
I want to create file in this folder....&lt;br&gt;
&lt;br&gt;
Thanks in advance,&lt;br&gt;
Pawan Kumar&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
pawan_sin99 wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks it &amp;nbsp;worked...!!!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Peter Leugner wrote:&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; You can start a local server that's listening to a socket and redirect&lt;br&gt;
&amp;gt;&amp;gt; stdout to that socket with the help of netcat&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Example:&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; var listener = {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; onStopListening: function() {},&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; onSocketAccepted: function(server, transport) {&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; try {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var stream = transport.openInputStream(0,0,0);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var instream = Components.classes&lt;br&gt;
&amp;gt;&amp;gt; [&amp;quot;@mozilla.org/scriptableinputstream;1&amp;quot;].createInstance&lt;br&gt;
&amp;gt;&amp;gt; (Components.interfaces.nsIScriptableInputStream);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; instream.init(stream);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; } catch (e) {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&amp;quot;Error &amp;quot;+e);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; }&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; var dataListener = {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data:&amp;quot;&amp;quot;,&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; onStartRequest: function(request, context) {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data=&amp;quot;&amp;quot;;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; onStopRequest: function(request, context, status) {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instream.close();&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // this.data has the sent data&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; onDataAvailable: function(request, context, inputStream, offset,&lt;br&gt;
&amp;gt;&amp;gt; count) {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data = this.data + instream.read(count);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; };&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; var pump = Components.classes&lt;br&gt;
&amp;gt;&amp;gt; [&amp;quot;@mozilla.org/network/input-stream-pump;1&amp;quot;].createInstance&lt;br&gt;
&amp;gt;&amp;gt; (Components.interfaces.nsIInputStreamPump);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; pump.init(stream, -1, -1, 0, 0, false);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; pump.asyncRead(dataListener,null);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; }&lt;br&gt;
&amp;gt;&amp;gt; };&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; function startServer() {&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; try{&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; var socket = Components.classes&lt;br&gt;
&amp;gt;&amp;gt; [&amp;quot;@mozilla.org/network/server-socket;1&amp;quot;];&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; server = socket.createInstance();&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; server =&lt;br&gt;
&amp;gt;&amp;gt; server.QueryInterface(Components.interfaces.nsIServerSocket);&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; server.init(6669,true,-1);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; server.asyncListen(listener);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; }&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;catch (e){&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&amp;quot;Error: &amp;quot;+e);&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; }&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; }&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; function stopServer() {&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (server) server.close();&lt;br&gt;
&amp;gt;&amp;gt; }&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Start the server and then start the script piping the output like&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; ls | nc localhost 6669&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Good luck,&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Peter Leugner&lt;br&gt;
&amp;gt;&amp;gt; ---------------------------------------------------------------------&lt;br&gt;
&amp;gt;&amp;gt; Leiter IT Anwendungsentwicklung&lt;br&gt;
&amp;gt;&amp;gt; Tel.: +49 (0) 89 45 06 63 26&lt;br&gt;
&amp;gt;&amp;gt; Fax: +49 (0) 89 45 06 63 81&lt;br&gt;
&amp;gt;&amp;gt; e-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pleugner@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; Web: &lt;/tt&gt;&lt;tt&gt;www.as-computer.de&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; AS Computer Consulting &amp;amp; Service GmbH&lt;br&gt;
&amp;gt;&amp;gt; Sitz: München&lt;br&gt;
&amp;gt;&amp;gt; Geschäftsführer: Dipl.-Ing. (FH) Andreas Erhart&lt;br&gt;
&amp;gt;&amp;gt; Register: München HRB 111 507&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; | Von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; |pawan_sin99 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PAWANthethunder@...&lt;/a&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; | An: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; |&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib@...&lt;/a&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; | Datum: &amp;nbsp; &amp;nbsp; |&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; |04/05/2009 20:39 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; | Betreff: &amp;nbsp; |&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; |Re: [Jslib] Executing unix command ( such as ls ) from the jslib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; | Gesendet &amp;nbsp; |&lt;br&gt;
&amp;gt;&amp;gt; | von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br&gt;
&amp;gt;&amp;gt; |------------&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; |&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib-bounces@...&lt;/a&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; So, how can we get the stdout ..because I have to display results...Is&lt;br&gt;
&amp;gt;&amp;gt; there&lt;br&gt;
&amp;gt;&amp;gt; anyway to do it...........&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Pete Collins wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; nsIProcess only supports executing commands and not returning stdout&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; back to the caller ...&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; --pete&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; pawan_sin99 wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; such as&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; how&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; to do it with jslib.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks in advance,&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Pawan Kumar&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Pete Collins - Founder, Mozdev Group Inc.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; &lt;/tt&gt;&lt;tt&gt;www.mozdevgroup.com&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Mozilla Software Development Solutions&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; tel: 1-719-302-5811&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; fax: 1-719-302-5813&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Jslib mailing list&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt; View this message in context:&lt;br&gt;
&amp;gt;&amp;gt; &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; Sent from the MozDev - jslib mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; Jslib mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; Jslib mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt;&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
View this message in context: &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22948660.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22948660.html&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
Sent from the MozDev - jslib mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Jslib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&lt;br&gt;
!DSPAM:3,49dcaf0147191670490836!&lt;br&gt;
&lt;br&gt;
&lt;/tt&gt;&lt;br&gt;
&lt;/body&gt;&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22952367&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22952367.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22951655</id>
	<title>Re: Antwort: Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-08T07:26:26Z</published>
	<updated>2009-04-08T07:26:26Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; var file = new File(&amp;quot;/home/pawan/text.txt&amp;quot;).
&lt;br&gt;&amp;gt; &amp;nbsp;It creates file named test.txt in home of user pawan....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function createFile()
&lt;br&gt;&amp;gt; { &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; jslib.init(this);
&lt;br&gt;&amp;gt; &amp;nbsp; include (jslib_file);
&lt;br&gt;&amp;gt; &amp;nbsp; var file = new File(&amp;quot;test.txt&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; file.open(&amp;quot;w&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; file.write(&amp;quot;This is a first file created by browser\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; file.close();
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;The file.open(&amp;quot;w&amp;quot;);
&lt;br&gt;&lt;br&gt;Creates the file ...
&lt;br&gt;&lt;br&gt;&amp;gt; This program I am using to create file ...but it does not create file..I
&lt;br&gt;&amp;gt; don't know y ...May be its creating the file from where firefox is
&lt;br&gt;&amp;gt; invoked...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But how to create file in my chrome://somename/content/
&lt;br&gt;&amp;gt; I want to create file in this folder....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;You need permission to write to the chrome dir.
&lt;br&gt;&lt;br&gt;Also, in most cases &amp;quot;chrome://somename/content&amp;quot; is a mapped resource 
&lt;br&gt;that points to a jar archive and is not a file on the filesystem.
&lt;br&gt;&lt;br&gt;Usually for files you want to create and write to, you would place them 
&lt;br&gt;in the mozilla/firefox profile dir which is a place you have permission 
&lt;br&gt;to write to.
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22951655&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22951655.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22948660</id>
	<title>Re: Antwort: Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-08T04:47:17Z</published>
	<updated>2009-04-08T04:47:17Z</updated>
	<author>
		<name>pawan_sin99</name>
	</author>
	<content type="html">I started sever its working fine...with command line...
&lt;br&gt;Now I made a c program which do 
&lt;br&gt;system(ls | nc localhost 6669);
&lt;br&gt;The above statement is working fine...
&lt;br&gt;&lt;br&gt;But when I do,
&lt;br&gt;system( ls | &amp;nbsp;myprog | nc localhost 6669) ;
&lt;br&gt;&lt;br&gt;myprog is in the bash file PATH of my shell....but here the system command does not find myprog path......means it is not including the PATH of the bash of shell...So After lot of search also I cannot able to debug this error....
&lt;br&gt;&lt;br&gt;So , how to include shell enviroment to my program..Is there anyway of doing that or any other method by which I am able to do such stuff?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Secondly,,,,.when I use 
&lt;br&gt;&lt;br&gt;var file = new File(&amp;quot;/home/pawan/text.txt&amp;quot;).
&lt;br&gt;&amp;nbsp;It creates file named test.txt in home of user pawan....
&lt;br&gt;&lt;br&gt;function createFile()
&lt;br&gt;{ &amp;nbsp;
&lt;br&gt;&amp;nbsp; jslib.init(this);
&lt;br&gt;&amp;nbsp; include (jslib_file);
&lt;br&gt;&amp;nbsp; var file = new File(&amp;quot;test.txt&amp;quot;);
&lt;br&gt;&amp;nbsp; file.open(&amp;quot;w&amp;quot;);
&lt;br&gt;&amp;nbsp; file.write(&amp;quot;This is a first file created by browser\n&amp;quot;);
&lt;br&gt;&amp;nbsp; file.close();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This program I am using to create file ...but it does not create file..I don't know y ...May be its creating the file from where firefox is invoked...
&lt;br&gt;&lt;br&gt;But how to create file in my chrome://somename/content/
&lt;br&gt;I want to create file in this folder....
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;Pawan Kumar
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;quote author=&quot;pawan_sin99&quot;&gt;&lt;br&gt;Thanks it &amp;nbsp;worked...!!!
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Peter Leugner wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;You can start a local server that's listening to a socket and redirect
&lt;br&gt;stdout to that socket with the help of netcat
&lt;br&gt;&lt;br&gt;Example:
&lt;br&gt;&lt;br&gt;var listener = {
&lt;br&gt;&amp;nbsp; onStopListening: function() {},
&lt;br&gt;&amp;nbsp; onSocketAccepted: function(server, transport) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var stream = transport.openInputStream(0,0,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var instream = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/scriptableinputstream;1&amp;quot;].createInstance
&lt;br&gt;(Components.interfaces.nsIScriptableInputStream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; instream.init(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; } catch (e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&amp;quot;Error &amp;quot;+e);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; var dataListener = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data:&amp;quot;&amp;quot;,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onStartRequest: function(request, context) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data=&amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onStopRequest: function(request, context, status) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instream.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // this.data has the sent data
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onDataAvailable: function(request, context, inputStream, offset,
&lt;br&gt;count) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data = this.data + instream.read(count);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; var pump = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/network/input-stream-pump;1&amp;quot;].createInstance
&lt;br&gt;(Components.interfaces.nsIInputStreamPump);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pump.init(stream, -1, -1, 0, 0, false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pump.asyncRead(dataListener,null);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;function startServer() {
&lt;br&gt;&lt;br&gt;&amp;nbsp; try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; var socket = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/network/server-socket;1&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; server = socket.createInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; server = server.QueryInterface(Components.interfaces.nsIServerSocket);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; server.init(6669,true,-1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; server.asyncListen(listener);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;catch (e){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&amp;quot;Error: &amp;quot;+e);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;function stopServer() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (server) server.close();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Start the server and then start the script piping the output like
&lt;br&gt;&lt;br&gt;ls | nc localhost 6669
&lt;br&gt;&lt;br&gt;Good luck,
&lt;br&gt;&lt;br&gt;Peter Leugner
&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;Leiter IT Anwendungsentwicklung
&lt;br&gt;Tel.: +49 (0) 89 45 06 63 26
&lt;br&gt;Fax: +49 (0) 89 45 06 63 81
&lt;br&gt;e-Mail: pleugner@as-computer.de
&lt;br&gt;Web: www.as-computer.de
&lt;br&gt;&lt;br&gt;AS Computer Consulting &amp; Service GmbH
&lt;br&gt;Sitz: München
&lt;br&gt;Geschäftsführer: Dipl.-Ing. (FH) Andreas Erhart
&lt;br&gt;Register: München HRB 111 507
&lt;br&gt;&lt;br&gt;&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |pawan_sin99 &amp;lt;PAWANthethunder@gmail.com&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| An: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |jslib@mozdev.org &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Datum: &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |04/05/2009 20:39 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Betreff: &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |Re: [Jslib] Executing unix command ( such as ls ) from the jslib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Gesendet &amp;nbsp; |
&lt;br&gt;| von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |jslib-bounces@mozdev.org &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;So, how can we get the stdout ..because I have to display results...Is
&lt;br&gt;there
&lt;br&gt;anyway to do it...........
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Pete Collins wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nsIProcess only supports executing commands and not returning stdout
&lt;br&gt;&amp;gt; back to the caller ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --pete
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; pawan_sin99 wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell
&lt;br&gt;&amp;gt;&amp;gt; such as
&lt;br&gt;&amp;gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting
&lt;br&gt;&amp;gt;&amp;gt; how
&lt;br&gt;&amp;gt;&amp;gt; to do it with jslib.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt;&amp;gt; Pawan Kumar
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;&amp;gt; www.mozdevgroup.com
&lt;br&gt;&amp;gt; Mozilla Software Development Solutions
&lt;br&gt;&amp;gt; tel: 1-719-302-5811
&lt;br&gt;&amp;gt; fax: 1-719-302-5813
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; Jslib@mozdev.org
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Sent from the MozDev - jslib mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;Jslib@mozdev.org
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&lt;br&gt;!DSPAM:3,49d8fac747199060010485!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;Jslib@mozdev.org
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;/quote&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22948660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22922693</id>
	<title>Re: Antwort: Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-07T00:40:07Z</published>
	<updated>2009-04-07T00:40:07Z</updated>
	<author>
		<name>pawan_sin99</name>
	</author>
	<content type="html">Thanks it &amp;nbsp;worked...!!!
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Peter Leugner wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;You can start a local server that's listening to a socket and redirect
&lt;br&gt;stdout to that socket with the help of netcat
&lt;br&gt;&lt;br&gt;Example:
&lt;br&gt;&lt;br&gt;var listener = {
&lt;br&gt;&amp;nbsp; onStopListening: function() {},
&lt;br&gt;&amp;nbsp; onSocketAccepted: function(server, transport) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var stream = transport.openInputStream(0,0,0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var instream = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/scriptableinputstream;1&amp;quot;].createInstance
&lt;br&gt;(Components.interfaces.nsIScriptableInputStream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; instream.init(stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; } catch (e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&amp;quot;Error &amp;quot;+e);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; var dataListener = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data:&amp;quot;&amp;quot;,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onStartRequest: function(request, context) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data=&amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onStopRequest: function(request, context, status) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instream.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // this.data has the sent data
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onDataAvailable: function(request, context, inputStream, offset,
&lt;br&gt;count) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.data = this.data + instream.read(count);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; var pump = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/network/input-stream-pump;1&amp;quot;].createInstance
&lt;br&gt;(Components.interfaces.nsIInputStreamPump);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pump.init(stream, -1, -1, 0, 0, false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; pump.asyncRead(dataListener,null);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;function startServer() {
&lt;br&gt;&lt;br&gt;&amp;nbsp; try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; var socket = Components.classes
&lt;br&gt;[&amp;quot;@mozilla.org/network/server-socket;1&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; server = socket.createInstance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; server = server.QueryInterface(Components.interfaces.nsIServerSocket);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; server.init(6669,true,-1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; server.asyncListen(listener);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp;catch (e){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&amp;quot;Error: &amp;quot;+e);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;function stopServer() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (server) server.close();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Start the server and then start the script piping the output like
&lt;br&gt;&lt;br&gt;ls | nc localhost 6669
&lt;br&gt;&lt;br&gt;Good luck,
&lt;br&gt;&lt;br&gt;Peter Leugner
&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;Leiter IT Anwendungsentwicklung
&lt;br&gt;Tel.: +49 (0) 89 45 06 63 26
&lt;br&gt;Fax: +49 (0) 89 45 06 63 81
&lt;br&gt;e-Mail: pleugner@as-computer.de
&lt;br&gt;Web: www.as-computer.de
&lt;br&gt;&lt;br&gt;AS Computer Consulting &amp; Service GmbH
&lt;br&gt;Sitz: München
&lt;br&gt;Geschäftsführer: Dipl.-Ing. (FH) Andreas Erhart
&lt;br&gt;Register: München HRB 111 507
&lt;br&gt;&lt;br&gt;&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |pawan_sin99 &amp;lt;PAWANthethunder@gmail.com&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| An: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |jslib@mozdev.org &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Datum: &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |04/05/2009 20:39 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Betreff: &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |Re: [Jslib] Executing unix command ( such as ls ) from the jslib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;| Gesendet &amp;nbsp; |
&lt;br&gt;| von: &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;|------------&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&amp;nbsp; |jslib-bounces@mozdev.org &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;nbsp; &amp;gt;--------------------------------------------------------------------------------------------------------------------------------------------------|
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;So, how can we get the stdout ..because I have to display results...Is
&lt;br&gt;there
&lt;br&gt;anyway to do it...........
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Pete Collins wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nsIProcess only supports executing commands and not returning stdout
&lt;br&gt;&amp;gt; back to the caller ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --pete
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; pawan_sin99 wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell
&lt;br&gt;&amp;gt;&amp;gt; such as
&lt;br&gt;&amp;gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting
&lt;br&gt;&amp;gt;&amp;gt; how
&lt;br&gt;&amp;gt;&amp;gt; to do it with jslib.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt;&amp;gt; Pawan Kumar
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;&amp;gt; www.mozdevgroup.com
&lt;br&gt;&amp;gt; Mozilla Software Development Solutions
&lt;br&gt;&amp;gt; tel: 1-719-302-5811
&lt;br&gt;&amp;gt; fax: 1-719-302-5813
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; Jslib@mozdev.org
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;View this message in context:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Sent from the MozDev - jslib mailing list archive at Nabble.com.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;Jslib@mozdev.org
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&lt;br&gt;!DSPAM:3,49d8fac747199060010485!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;Jslib@mozdev.org
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22922693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22898149</id>
	<title>Antwort: Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-05T13:13:44Z</published>
	<updated>2009-04-05T13:13:44Z</updated>
	<author>
		<name>Peter Leugner</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;You can start a local server that's listening to a socket and redirect stdout to that socket with the help of netcat&lt;br&gt;
&lt;br&gt;
Example:&lt;br&gt;
&lt;br&gt;
var listener = {&lt;br&gt;
  onStopListening: function() {},&lt;br&gt;
  onSocketAccepted: function(server, transport) {&lt;br&gt;
&lt;br&gt;
    try {&lt;br&gt;
      var stream = transport.openInputStream(0,0,0);&lt;br&gt;
      var instream = Components.classes[&amp;quot;@mozilla.org/scriptableinputstream;1&amp;quot;].createInstance(Components.interfaces.nsIScriptableInputStream);&lt;br&gt;
      instream.init(stream);&lt;br&gt;
    } catch (e) {&lt;br&gt;
      alert(&amp;quot;Error &amp;quot;+e);&lt;br&gt;
    }&lt;br&gt;
&lt;br&gt;
    var dataListener = {&lt;br&gt;
	  data:&amp;quot;&amp;quot;,&lt;br&gt;
	  &lt;br&gt;
      onStartRequest: function(request, context) {&lt;br&gt;
      	this.data=&amp;quot;&amp;quot;;&lt;br&gt;
      },&lt;br&gt;
      &lt;br&gt;
      onStopRequest: function(request, context, status) {&lt;br&gt;
        instream.close();&lt;br&gt;
	// this.data has the sent data&lt;br&gt;
      },&lt;br&gt;
&lt;br&gt;
      onDataAvailable: function(request, context, inputStream, offset, count) {&lt;br&gt;
        this.data = this.data + instream.read(count);&lt;br&gt;
      }&lt;br&gt;
    };&lt;br&gt;
&lt;br&gt;
    var pump = Components.classes[&amp;quot;@mozilla.org/network/input-stream-pump;1&amp;quot;].createInstance(Components.interfaces.nsIInputStreamPump);&lt;br&gt;
    pump.init(stream, -1, -1, 0, 0, false);&lt;br&gt;
    pump.asyncRead(dataListener,null);&lt;br&gt;
  }&lt;br&gt;
};&lt;br&gt;
&lt;br&gt;
function startServer() {&lt;br&gt;
&lt;br&gt;
  try{&lt;br&gt;
    var socket = Components.classes[&amp;quot;@mozilla.org/network/server-socket;1&amp;quot;];&lt;br&gt;
    server = socket.createInstance();&lt;br&gt;
    server = server.QueryInterface(Components.interfaces.nsIServerSocket);&lt;br&gt;
&lt;br&gt;
    server.init(6669,true,-1);&lt;br&gt;
    server.asyncListen(listener);&lt;br&gt;
  }&lt;br&gt;
   catch (e){&lt;br&gt;
     alert(&amp;quot;Error: &amp;quot;+e);&lt;br&gt;
  }&lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
function stopServer() {&lt;br&gt;
	if (server) server.close();&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Start the server and then start the script piping the output like&lt;br&gt;
&lt;br&gt;
ls | nc localhost 6669&lt;br&gt;
&lt;br&gt;
Good luck,&lt;br&gt;
&lt;br&gt;
Peter Leugner&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
Leiter IT Anwendungsentwicklung&lt;br&gt;
Tel.: +49 (0) 89 45 06 63 26&lt;br&gt;
Fax: +49 (0) 89 45 06 63 81&lt;br&gt;
e-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pleugner@...&lt;/a&gt;&lt;br&gt;
Web: www.as-computer.de&lt;br&gt;
&lt;br&gt;
AS Computer Consulting &amp;amp; Service GmbH&lt;br&gt;
Sitz: München&lt;br&gt;
Geschäftsführer: Dipl.-Ing. (FH) Andreas Erhart &lt;br&gt;
Register: München HRB 111 507&lt;br&gt;
&lt;br&gt;
&lt;img width=&quot;16&quot; height=&quot;16&quot; src=&quot;http://old.nabble.com/attachment/22898149/0/graycol.gif&quot; border=&quot;0&quot; alt=&quot;Inaktiv: Details verbergen für pawan_sin99 ---04/05/2009 20:39:06---So, how can we get the stdout ..because I have to display r&quot;&gt;&lt;font color=&quot;#424282&quot;&gt;pawan_sin99 ---04/05/2009 20:39:06---So, how can we get the stdout ..because I have to display results...Is there anyway to do it........&lt;/font&gt;&lt;br&gt;
&lt;br&gt;

&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Von:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;pawan_sin99 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PAWANthethunder@...&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;An:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib@...&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Datum:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;04/05/2009 20:39&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Betreff:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;Re: [Jslib] Executing unix command ( such as ls ) from the jslib&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;96&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot; color=&quot;#5F5F5F&quot;&gt;Gesendet von:&lt;/font&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/22898149/1/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jslib-bounces@...&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;hr width=&quot;100%&quot; size=&quot;2&quot; align=&quot;left&quot; noshade style=&quot;color:#8091A5; &quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;br&gt;
So, how can we get the stdout ..because I have to display results...Is there&lt;br&gt;
anyway to do it...........&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Pete Collins wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; nsIProcess only supports executing commands and not returning stdout &lt;br&gt;
&amp;gt; back to the caller ...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --pete&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; pawan_sin99 wrote:&lt;br&gt;
&amp;gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell&lt;br&gt;
&amp;gt;&amp;gt; such as&lt;br&gt;
&amp;gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting &lt;br&gt;
&amp;gt;&amp;gt; how&lt;br&gt;
&amp;gt;&amp;gt; to do it with jslib.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks in advance,&lt;br&gt;
&amp;gt;&amp;gt; Pawan Kumar &lt;br&gt;
&amp;gt;&amp;gt; &amp;nbsp; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Pete Collins - Founder, Mozdev Group Inc.&lt;br&gt;
&amp;gt; &lt;/tt&gt;&lt;tt&gt;www.mozdevgroup.com&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt; Mozilla Software Development Solutions&lt;br&gt;
&amp;gt; tel: 1-719-302-5811&lt;br&gt;
&amp;gt; fax: 1-719-302-5813&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Jslib mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
View this message in context: &lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
Sent from the MozDev - jslib mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Jslib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&lt;/tt&gt;&lt;tt&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&lt;br&gt;
!DSPAM:3,49d8fac747199060010485!&lt;br&gt;
&lt;br&gt;
&lt;/tt&gt;&lt;br&gt;
&lt;/body&gt;&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22898149&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22898149.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22897136</id>
	<title>Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-05T11:41:41Z</published>
	<updated>2009-04-05T11:41:41Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;pawan_sin99 wrote:
&lt;br&gt;&amp;gt; So, how can we get the stdout ..because I have to display results...Is there
&lt;br&gt;&amp;gt; anyway to do it...........
&lt;br&gt;&lt;br&gt;Mozilla doesn't currently support IPC.
&lt;br&gt;&lt;br&gt;See this bug:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=68702&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=68702&lt;/a&gt;&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22897136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22897136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22895561</id>
	<title>Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-05T09:17:37Z</published>
	<updated>2009-04-05T09:17:37Z</updated>
	<author>
		<name>pawan_sin99</name>
	</author>
	<content type="html">So, how can we get the stdout ..because I have to display results...Is there anyway to do it...........
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Pete Collins wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;nsIProcess only supports executing commands and not returning stdout 
&lt;br&gt;back to the caller ...
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;pawan_sin99 wrote:
&lt;br&gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell such as
&lt;br&gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting &amp;nbsp;how
&lt;br&gt;&amp;gt; to do it with jslib.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; Pawan Kumar 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;Jslib@mozdev.org
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22895139</id>
	<title>Re: Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-05T08:39:40Z</published>
	<updated>2009-04-05T08:39:40Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">nsIProcess only supports executing commands and not returning stdout 
&lt;br&gt;back to the caller ...
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;pawan_sin99 wrote:
&lt;br&gt;&amp;gt; Hi, I am developing an extension which will run unix command of shell such as
&lt;br&gt;&amp;gt; ls..and fetch the ls result and displays it on addon...I am not getting &amp;nbsp;how
&lt;br&gt;&amp;gt; to do it with jslib.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; Pawan Kumar 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22895139&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22895139.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22891225</id>
	<title>Executing unix command ( such as ls ) from the jslib</title>
	<published>2009-04-05T00:41:50Z</published>
	<updated>2009-04-05T00:41:50Z</updated>
	<author>
		<name>pawan_sin99</name>
	</author>
	<content type="html">Hi, I am developing an extension which will run unix command of shell such as ls..and fetch the ls result and displays it on addon...I am not getting &amp;nbsp;how to do it with jslib.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;Pawan Kumar </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Executing-unix-command-%28-such-as-ls-%29-from-the-jslib-tp22891225p22891225.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20397579</id>
	<title>Re: inMemRDF</title>
	<published>2008-11-08T08:22:09Z</published>
	<updated>2008-11-08T08:22:09Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;patrice truong van nga wrote:
&lt;br&gt;&amp;gt; Thanks fro your honesty
&lt;br&gt;&amp;gt; Do I need to call directly Mozilla interface or
&lt;br&gt;&amp;gt; can I use another javascript lib?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;The jsLib RDF library wraps the mozilla RDF stuff. I think some 
&lt;br&gt;interfaces might have changed and that's why jsLib is not working 
&lt;br&gt;properly for you.
&lt;br&gt;&lt;br&gt;You can search around the mozilla codebase to see if there is js code 
&lt;br&gt;rdf consumers that do what you are looking to do.
&lt;br&gt;&lt;br&gt;Or if you feel inspired you can fix the jsLib RDF code. &amp;nbsp;:-)
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20397579&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inMemRDF-tp20391801p20397579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20395159</id>
	<title>Re: inMemRDF</title>
	<published>2008-11-08T03:30:45Z</published>
	<updated>2008-11-08T03:30:45Z</updated>
	<author>
		<name>ptvnga</name>
	</author>
	<content type="html">Thanks fro your honesty&lt;br&gt;Do I need to call directly Mozilla interface or&lt;br&gt;can I use another javascript lib?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2008/11/8 Pete Collins &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20395159&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pete@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I would recommend staying away from RDF if possible.&lt;br&gt;
&lt;br&gt;
This lib is quite old now and hasn&amp;#39;t been maintained.&lt;br&gt;
&lt;br&gt;
If you really need it fixed, please post a bug and I&amp;#39;ll try to look at it.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
--pete&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;
&lt;br&gt;
patrice truong van nga wrote:&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;
Hi all I am new in jslib&lt;br&gt;
i am stuck I apologize to ask such a question&lt;br&gt;
&lt;br&gt;
I try to use th inMemRDF&lt;br&gt;
&lt;br&gt;
var gRDF = null;&lt;br&gt;
&amp;nbsp;var rdfFileURL = &amp;quot;chrome://project/content/local.rdf&amp;quot;;&lt;br&gt;
&amp;nbsp;fileUtils = new FileUtils( );&lt;br&gt;
&amp;nbsp;path = fileUtils.chrome_to_path(rdfFileURL);&lt;br&gt;
&amp;nbsp;if(navigator.platform == &amp;quot;Win32&amp;quot;) {&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(path);&lt;br&gt;
 &amp;nbsp; &amp;nbsp; path = path.replace(/\//g,&amp;quot;\\&amp;quot;);&lt;br&gt;
 &amp;nbsp; &amp;nbsp;// Only needed on Windows, until JSLib is fixed&lt;br&gt;
&amp;nbsp;}&lt;br&gt;
&amp;nbsp;gRDF = new RDFFile(path,null,&amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;,null);&lt;br&gt;
var gRDF = initRDF();&lt;br&gt;
var node = searchNode(getTreeCellId(treename),gRDF);&lt;br&gt;
var root = &amp;quot;urn:fs:root&amp;quot;;&lt;br&gt;
var MRDF = new inMemRDF(root, &amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
it throw an exception component return failure code&lt;br&gt;
0x80004005(NS_ERROR_FAILURE) [nsIRDFContainer.Init]&lt;br&gt;
&lt;br&gt;
what&amp;#39;s wrong thanks in advance&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
------------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Jslib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20395159&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;
 &amp;nbsp;&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
-- &lt;br&gt;
Pete Collins - Founder, Mozdev Group Inc.&lt;br&gt;
&lt;a href=&quot;http://www.mozdevgroup.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.mozdevgroup.com&lt;/a&gt;&lt;br&gt;
Mozilla Software Development Solutions&lt;br&gt;
tel: 1-719-302-5811&lt;br&gt;
fax: 1-719-302-5813&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Jslib mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20395159&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20395159&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inMemRDF-tp20391801p20395159.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20391994</id>
	<title>Re: inMemRDF</title>
	<published>2008-11-07T17:41:59Z</published>
	<updated>2008-11-07T17:41:59Z</updated>
	<author>
		<name>Pete Collins</name>
	</author>
	<content type="html">I would recommend staying away from RDF if possible.
&lt;br&gt;&lt;br&gt;This lib is quite old now and hasn't been maintained.
&lt;br&gt;&lt;br&gt;If you really need it fixed, please post a bug and I'll try to look at it.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;--pete
&lt;br&gt;&lt;br&gt;patrice truong van nga wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all I am new in jslib
&lt;br&gt;&amp;gt; i am stuck I apologize to ask such a question
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I try to use th inMemRDF
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; var gRDF = null;
&lt;br&gt;&amp;gt; &amp;nbsp;var rdfFileURL = &amp;quot;chrome://project/content/local.rdf&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;fileUtils = new FileUtils( );
&lt;br&gt;&amp;gt; &amp;nbsp;path = fileUtils.chrome_to_path(rdfFileURL);
&lt;br&gt;&amp;gt; &amp;nbsp;if(navigator.platform == &amp;quot;Win32&amp;quot;) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(path);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;path = path.replace(/\//g,&amp;quot;\\&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // Only needed on Windows, until JSLib is fixed
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;gRDF = new RDFFile(path,null,&amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;,null);
&lt;br&gt;&amp;gt; var gRDF = initRDF();
&lt;br&gt;&amp;gt; var node = searchNode(getTreeCellId(treename),gRDF);
&lt;br&gt;&amp;gt; var root = &amp;quot;urn:fs:root&amp;quot;;
&lt;br&gt;&amp;gt; var MRDF = new inMemRDF(root, &amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it throw an exception component return failure code
&lt;br&gt;&amp;gt; 0x80004005(NS_ERROR_FAILURE) [nsIRDFContainer.Init]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; what's wrong thanks in advance
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jslib mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20391994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Pete Collins - Founder, Mozdev Group Inc.
&lt;br&gt;www.mozdevgroup.com
&lt;br&gt;Mozilla Software Development Solutions
&lt;br&gt;tel: 1-719-302-5811
&lt;br&gt;fax: 1-719-302-5813
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20391994&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inMemRDF-tp20391801p20391994.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20391801</id>
	<title>inMemRDF</title>
	<published>2008-11-07T17:13:40Z</published>
	<updated>2008-11-07T17:13:40Z</updated>
	<author>
		<name>ptvnga</name>
	</author>
	<content type="html">Hi all I am new in jslib&lt;br&gt;i am stuck I apologize to ask such a question &lt;br&gt;&lt;br&gt;I try to use th inMemRDF&lt;br&gt;&lt;br&gt;var gRDF = null;&lt;br&gt;&amp;nbsp;var rdfFileURL = &amp;quot;chrome://project/content/local.rdf&amp;quot;;&lt;br&gt;&amp;nbsp;fileUtils = new FileUtils( );&lt;br&gt;
&amp;nbsp;path = fileUtils.chrome_to_path(rdfFileURL);&lt;br&gt;&amp;nbsp;if(navigator.platform == &amp;quot;Win32&amp;quot;) {&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alert(path);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = path.replace(/\//g,&amp;quot;\\&amp;quot;); &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Only needed on Windows, until JSLib is fixed&lt;br&gt;
&amp;nbsp;}&lt;br&gt;&amp;nbsp;gRDF = new RDFFile(path,null,&amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;,null);&lt;br&gt;var gRDF = initRDF();&lt;br&gt;var node = searchNode(getTreeCellId(treename),gRDF);&lt;br&gt;var root = &amp;quot;urn:fs:root&amp;quot;;&lt;br&gt;
var MRDF = new inMemRDF(root, &amp;quot;&lt;a href=&quot;http://www.project.org/fs-rdf#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.project.org/fs-rdf#&lt;/a&gt;&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;it throw an exception component return failure code&lt;br&gt;0x80004005(NS_ERROR_FAILURE) [nsIRDFContainer.Init]&lt;br&gt;
&lt;br&gt;what&amp;#39;s wrong thanks in advance&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Jslib mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20391801&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jslib@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://www.mozdev.org/mailman/listinfo/jslib&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.mozdev.org/mailman/listinfo/jslib&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/inMemRDF-tp20391801p20391801.html" />
</entry>

</feed>
