Windows中的PHP执行octave sh [英] PHP exec octave sh in Windows
本文介绍了Windows中的PHP执行octave sh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Windows 2008中运行的exec命令在php中执行以下八度sh文件.该命令在Unix中有效,但我不知道为什么它在Windows中不起作用.似乎Octave的工作目录是C:\ Windows \ system32 \ config \ systemprofile 请指教.
I'm trying to execute the following octave sh file in php using the exec command running in Windows 2008. This command works in Unix but I don't know why it doesn't work in Windows. Seems that the working directory of Octave is C:\Windows\system32\config\systemprofile Please advice.
exec("octave ./d_test.sh");
推荐答案
已解决:)我在'c:\ software \ Octave \ Octave3.6.2_gcc4.6.2 \ share \ octave \ site \ m \ startup'中编辑了octaverc.与
Solved :) I edited the octaverc in 'c:\software\Octave\Octave3.6.2_gcc4.6.2\share\octave\site\m\startup' with
addpath("C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\test");
addpath("C:\\Windows\\system32\\config\\systemprofile")
##cd(getenv('USERPROFILE'))
这篇关于Windows中的PHP执行octave sh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文