please help me scilab with php

Mongkol Rodjan mongkol38 at gmail.com
Mon Mar 7 15:07:23 CET 2011


hi
i use ubuntu 10.0.4-desktop 64 bits, and install apache2 , install php5,
install scilab
after
i create file gra.sce -->

x = 2:1:10;
y = 5*x^2+4;
plot(x,y);
xs2gif(0,'/var/www/test.gif');
exit;

and file log.sce -->

log2(100);
savematfile('001.txt','ans');
exit;

at terminal on ubuntu i use command
scilab -nwni -nb -f log.sce
that ok can create file 001.txt

and use command
scilab -nw -nb -f gra.sce
that ok can create file test.gif

so i create php file like -->

<?php
exec('HOME=/var/www; export HOME; scilab -nwni -nb -f log.sce', $output);
exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output);
?>

result
exec('HOME=/var/www; export HOME; scilab -nwni -nb -f log.sce', $output);
it's work can create file 001.txt

BUT !!!!
exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output); it
not
create  test.gif

please help me how to do for -->
exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output);
to work success...

thank a lot sorry if my eng not good... :D

-- 
MR.MONGKOL RODJAN
Network Administrator
Programmer & System analysis
Web : http://cs.npru.ac.th/~mongkol
E-Mail : mongkol38 at gmail.com
Mobile : 08-5193-1997
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20110307/cffccbca/attachment.htm>


More information about the dev mailing list