Comments (7)
The first issue is easy to fix – just replace the path in the script
with whatever works for you. I didn't have the time and curiosity to
make the init scripts truly portable. If you can find a way to make it
work on most (all?) distros, by all means, do send in a patch.
Regarding the second issue, please include the error specifically. As it
stands, you have an obvious syntax error in that line (you never close
the hostname string), but I'm not sure that's exactly the code you're
trying to run.
On 07/07/16 6:46 , tims wrote:
Hi,
I am running a vagrant box.
service octave-daemon start
gives the following error:
/etc/init.d/octave-daemon: line 14: /etc/rc.d/init.d/functions: No
such file or directory
Starting GNU Octave daemon (octave-daemon): /etc/init.d/octave-daemon:
line 29: daemon: command not foundhowever, the following works fine:
nohup octave-daemon -d -c /etc/octave-daemon.conf&from the quick start examples, the following works great in
/var/www/html/test.php without starting the daemon:
require "Octave_lib.php";
$octave=new Octave(false);
echo "Result=".$octave->query("1+2");the following fails:
$octave=new Octave("127.0.0.1);the same code fails when placed in a php class (symfony Controller).
says Command did not run successfully on line "new Octave"what are the fixes?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#15, or mute the thread
https://github.com/notifications/unsubscribe/AAjE12XPMxwlKqbrvss3fpdtpLfbMjkRks5qTHaxgaJpZM4JGtnU.
from octave-daemon.
Thanks for the response.
Closing the string was only a typo here
require "absolute.path/Octave_lib.php";
$octave=new Octave("127.0.0.1");
echo "Result=".$octave->query("1+2");
Yields "Result="
Instead of "Result=3"
However new Octave (false) works perfect above.
Issue 2:
require "absolute.path/Octave_lib.php";
class DefaultController extends Controller
{
/**
* @route("/", name="homepage")
*/
public function indexAction(Request $request)
{
$octave=new Octave(false);
}
results in "139 command did not run successfully
from octave-daemon.
Issue 1: did you successfully start the daemon before running that?
Issue 2: that looks like something idiosyncratic to your particular
setup within that framework, and you should probably try to simplify the
use case to a less esoteric class instead of Octave (perhaps a simple,
home-brewed example).
On 07/07/16 15:34 , tims wrote:
Thanks for the response.
Closing the string was only a typo hererequire "absolute.path/Octave_lib.php";
$octave=new Octave("127.0.0.1");
echo "Result=".$octave->query("1+2");Yields "Result="
Instead of "Result=3"However new Octave (false) works perfect above.
Issue 2:
require "absolute.path/Octave_lib.php";
class DefaultController extends Controller
{
/**
- @route https://github.com/Route("/", name="homepage")
*/
public function indexAction(Request $request)
{
$octave=new Octave(false);
}results in "139 command did not run successfully
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAjE1w6CTMvs07GIKxVTPGK1VxLsUU1Nks5qTPJLgaJpZM4JGtnU.
from octave-daemon.
Issue 1
nohup octave-daemon -d -c /etc/octave-daemon.conf&
Seemed to have worked fine. How can I check it?
Issue 2
I would like to use the php symfony framework ( model view controller architecture)
Utmost I can try moving the octave call to model file and try again
from octave-daemon.
Issue 1: don't nohup it – run it in a separate console and see what it does
Issue 2: I get that; I was suggesting a way to experiment with Symphony
replacing the Octave class with a simpler class temporarily; maybe it's
an issue with includes, or whatever else.
from octave-daemon.
Issue 1:
root@vagrant-ubuntu-trusty-64:# sudo octave-daemon -d -c /etc/octave-daemon.conf&# PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Configuration error: Invalid group name in run_as (nobody)' in /usr/bin/octave-daemon:32
[1] 11669
root@vagrant-ubuntu-trusty-64:
Stack trace:
#0 {main}
thrown in /usr/bin/octave-daemon on line 32
Issue 2:
will try and let you know
from octave-daemon.
Issue 2: SOLVED
There is some suggestion here: http://stackoverflow.com/questions/38237651/octave-daemon-from-php-class-file/38251500#38251500
Worked after copying "classes" folder and saying "use Octave"
from octave-daemon.
Related Issues (19)
- PHP location error HOT 1
- Configuration "max_instances" value is ignored, always launched 3
- outputting plots with octave-daemon HOT 1
- RuntimeException' with message 'Failed starting controllers! Check the system logs for more information.' in /usr/bin/octave-daemon:32 Stack trace: HOT 7
- ERROR on service octave-daemon start. Ubuntu 12.04, octave-daemon v1.0.1 unzipped and successfully installed. HOT 1
- PHP Fatal error:can you help me? HOT 3
- Composer.json HOT 1
- Create a new release HOT 3
- Git hook for packagist HOT 2
- Octave structures HOT 2
- matrix access
- array size zero HOT 1
- daemon uncaught exception HOT 1
- Octave 4 Error HOT 2
- daemon hangs
- calling php code through localhost
- calling .m file thorugh php HOT 1
- Best practice for 30-40 concurrent commands HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octave-daemon.