<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br>
<br>
I am porting some test codes from Fedora core 2 to Fedora core 8.it
works fine in FC2(2.6.5-1.358) but problem in FC8(2.6.23.1-42.fc8).<br>
<br>
Pgm.c<br>
---------<br>
#include<stdio.h><br>
 int main void(int) <br>
{<br>
fprintf(stderr,"hello world\n",);<br>
}<br>
<br>
$ gcc -o Pgm Pgm.c<br>
<br>
$ vim myscript.sh<br>
./Pgm &<br>
<br>
$ /usr/bin/ssh -x -n -o BatchMode=yes 127.0.0.1 cd /home/tom/Test_Dir/ '&&' ./myscript.sh <br>
<br>
If i run this command hello world is not printed.<br>
If i run this same in FC2 hello world in printed.<br>
<br>
<b>Whether there is solution to this or it is a bug of FC8?</b><br>
<br>
--------------------------------------------------------------------------------------------------<br>
<b>Below solutions are correct?.</b><br>
--------------------------------------------------------------------------------------------<br>
<br>
Solution 1:<br>
----------<br>
If i do these changes i.e if i re-direct to stdout and run in background.<br>
<br>
$ vim myscript.sh<br>
./Pgm  2>&1 &<br>
<br>
$ /usr/bin/ssh -x -n -o BatchMode=yes 127.0.0.1 cd /home/tom/Test_Dir/ '&&' ./myscript.sh <br>
<br>
If i run this command it works fine.<br>
<br>
Solution 2:<br>
----------<br>
 vim myscript.sh<br>
./Pgm  </dev/null >&/dev/null &<br>
<br>
$ /usr/bin/ssh -x -n -o BatchMode=yes 127.0.0.1 cd /home/tom/Test_Dir/ '&&' ./myscript.sh <br>
<br>
<br>
Regards,<br>
Hari Krishna</td></tr></table><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> New Email addresses available on Yahoo! </a> <br>
Get the Email name you've always wanted on the new @ymail and @rocketmail.<br>
Hurry before someone else does!