簡體   English   中英

Windows中的PHP執行octave sh

[英]PHP exec octave sh in Windows

我正在嘗試使用Windows 2008中運行的exec命令在php中執行以下octave sh文件。該命令在Unix中有效,但我不知道為什么它在Windows中不起作用。 似乎Octave的工作目錄是C:\\ Windows \\ system32 \\ config \\ systemprofile請咨詢。

exec("octave ./d_test.sh");

解決:)我使用以下命令在'c:\\ software \\ Octave \\ Octave3.6.2_gcc4.6.2 \\ share \\ octave \\ site \\ m \\ startup'中編輯了octaverc

addpath("C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\test");
addpath("C:\\Windows\\system32\\config\\systemprofile")
##cd(getenv('USERPROFILE'))

最好只弄清楚八度音位在哪里,並使用該絕對路徑調用它,例如。 exec("C:\\Octave-3.6.1\\bin\\octave.exe ./d_test.sh");

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM