<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: this program on pipes is not wroking , can anyone tell me why ??</title>
	<atom:link href="https://www.emblogic.com/blog/02/this-program-on-pipes-is-not-wroking-can-anyone-tell-me-why/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/02/this-program-on-pipes-is-not-wroking-can-anyone-tell-me-why/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: amit.verma</title>
		<link>https://www.emblogic.com/blog/02/this-program-on-pipes-is-not-wroking-can-anyone-tell-me-why/#comment-662</link>
		<dc:creator><![CDATA[amit.verma]]></dc:creator>
		<pubDate>Fri, 09 Mar 2012 12:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=1956#comment-662</guid>
		<description><![CDATA[my program is working now ,
it was a minor mistake]]></description>
		<content:encoded><![CDATA[<p>my program is working now ,<br />
it was a minor mistake</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav Singh</title>
		<link>https://www.emblogic.com/blog/02/this-program-on-pipes-is-not-wroking-can-anyone-tell-me-why/#comment-655</link>
		<dc:creator><![CDATA[Vaibhav Singh]]></dc:creator>
		<pubDate>Tue, 28 Feb 2012 17:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=1956#comment-655</guid>
		<description><![CDATA[you hav made so couple of small mistakes here is your right program after modification ... checkout the changes and wts going wrong in your program . 

int main()
{
char buff[10];
char tx[]=&quot;hello wor\n&quot;;
int fd[2],t;
pid_t pd;
printf(&quot;\n %s&quot;,tx);
memset(buff,&#039;&#039;,sizeof(buff));
pipe(fd);
pd = fork();
if (pd &gt; 0 )
{
printf(&quot; parent cerated : %d\n&quot;,getpid());
//close(fd[0]);
write (fd[1],tx,sizeof(tx));
}
else if(pd == 0)
{
printf(&quot;\n child cerated : %d&quot;,getpid());
//close(fd[1]);

printf(&quot;\n %s&quot;,buff);
read(fd[0],buff,sizeof(buff));
printf(&quot;the received string is :%s&quot;,buff);
}
return 0;

}]]></description>
		<content:encoded><![CDATA[<p>you hav made so couple of small mistakes here is your right program after modification &#8230; checkout the changes and wts going wrong in your program . </p>
<p>int main()<br />
{<br />
char buff[10];<br />
char tx[]=&#8221;hello wor\n&#8221;;<br />
int fd[2],t;<br />
pid_t pd;<br />
printf(&#8220;\n %s&#8221;,tx);<br />
memset(buff,&#8221;,sizeof(buff));<br />
pipe(fd);<br />
pd = fork();<br />
if (pd &gt; 0 )<br />
{<br />
printf(&#8221; parent cerated : %d\n&#8221;,getpid());<br />
//close(fd[0]);<br />
write (fd[1],tx,sizeof(tx));<br />
}<br />
else if(pd == 0)<br />
{<br />
printf(&#8220;\n child cerated : %d&#8221;,getpid());<br />
//close(fd[1]);</p>
<p>printf(&#8220;\n %s&#8221;,buff);<br />
read(fd[0],buff,sizeof(buff));<br />
printf(&#8220;the received string is :%s&#8221;,buff);<br />
}<br />
return 0;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pushpa</title>
		<link>https://www.emblogic.com/blog/02/this-program-on-pipes-is-not-wroking-can-anyone-tell-me-why/#comment-651</link>
		<dc:creator><![CDATA[pushpa]]></dc:creator>
		<pubDate>Sun, 26 Feb 2012 17:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=1956#comment-651</guid>
		<description><![CDATA[well i just had a glance to ur pgm.it looks ok for me.plz mention wht kind of error u r getting.is it related with read write operation of some other prblm.
i wld suggest u to check whether system calls are correctly called with some error check condition.check whether u can print some statements inside child &amp; parent or nt.even read &amp; write functions returns the size of character read or written.check those values too.]]></description>
		<content:encoded><![CDATA[<p>well i just had a glance to ur pgm.it looks ok for me.plz mention wht kind of error u r getting.is it related with read write operation of some other prblm.<br />
i wld suggest u to check whether system calls are correctly called with some error check condition.check whether u can print some statements inside child &amp; parent or nt.even read &amp; write functions returns the size of character read or written.check those values too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
