<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri>I have a C executable program (test.out) to perform a test on a specific image format. </FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri>When I run it from the terminal: <STRONG>./test.out<SPAN style="mso-spacerun: yes"> </SPAN>../absolute path/filename.jpg</STRONG> </FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri>It runs fine and I get the right result.</FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri><STRONG>BUT:</STRONG></FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri>When I try to run it from a another C Program <SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">using Geany</SPAN> :</FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri><STRONG>System("/bin/ <SPAN style="mso-spacerun: yes"> </SPAN>./test.out<SPAN style="mso-spacerun: yes"> </SPAN>../absolute path/filename.jpg ");</STRONG></FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><STRONG><FONT size=3 face=Calibri></FONT></STRONG> </DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3 face=Calibri>I get an error during execution time:</FONT></DIV>
<P style="TEXT-ALIGN: left; MARGIN: 0cm 0cm 10pt; unicode-bidi: embed; DIRECTION: ltr" class=MsoNormal><FONT size=3><FONT face=Calibri><STRONG>sh:/bin/: Permission denied</STRONG><SPAN style="mso-spacerun: yes"> </SPAN></FONT></FONT></DIV></td></tr></table>