<span class="Apple-style-span" style="font-family: arial, helvetica, tahoma, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; ">hi<br>i use ubuntu 10.0.4-desktop 64 bits, and install apache2 , install php5,<br>
install scilab<br>after<br>i create file gra.sce --><br><br>x = 2:1:10; <br>y = 5*x^2+4; <br>plot(x,y); <br>xs2gif(0,'/var/www/test.gif'); <br>exit;<br><br>and file log.sce --><br><br>log2(100);<br>savematfile('001.txt','ans'); <br>
exit;<br><br>at terminal on ubuntu i use command<br>scilab -nwni -nb -f log.sce<br>that ok can create file 001.txt<br><br>and use command<br>scilab -nw -nb -f gra.sce<br>that ok can create file test.gif<br><br>so i create php file like --><br>
<br><?php<br>exec('HOME=/var/www; export HOME; scilab -nwni -nb -f log.sce', $output);<br>exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output);<br>?><br><br>result<br>exec('HOME=/var/www; export HOME; scilab -nwni -nb -f log.sce', $output);<br>
it's work can create file 001.txt<br><br>BUT !!!!<br>exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output); it not<br>create  test.gif<br><br>please help me how to do for --> <br>exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output);<br>
to work success...<br><br>thank a lot sorry if my eng not good... :D</span><br clear="all"><br>-- <br>MR.MONGKOL RODJAN<br>Network Administrator<br>Programmer & System analysis<br>Web : <a href="http://cs.npru.ac.th/~mongkol">http://cs.npru.ac.th/~mongkol</a><br>
E-Mail : <a href="mailto:mongkol38@gmail.com">mongkol38@gmail.com</a><br>Mobile : 08-5193-1997<br>