Is there a possibility to use Octave headless.
Something like this
octave < "5+4" >result.txt
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using
you’ll get
in
result.txt. Seeoctave --helpfor details about command-line arguments.Yet, there is this infamous
ans =that might be remove usingsed, e.g.which add the appropriate result (
10) inresult.txt.It should not be too hard to wrap this into a
bashscript.