help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave stole my Terminal


From: Thomas Treichl
Subject: Re: octave stole my Terminal
Date: Wed, 12 Sep 2007 21:17:24 +0200
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Right Moc, but I wouldn't say this is a problem, this is new and wanted and depends on how Octave.app is started. If you double-click the icon or call from command line

  open /Applications/Octave.app

then we start a new process (Terminal.app) and therefore we need to terminate that process again after the call of 'quit' or 'exit' (Apple App behavior). So what to do with the 'terminated process Terminal.app' - the Terminal never gets active anymore!? Set in your Preferences of Terminal.app that the window should be closed if bash is exited, so that you can see the feature completely working.

The other solution is to start up octave from the command line by just typing 
eg.

  /Applications/Octave.app/Contents/Resources/bin/octave

(or you already have created a link to this file placed eg. in /usr/bin and then simply call octave - read Readme.html of *.dmg about how to do it) then you get back to the bash after the call of "quit" (Unix shell command behavior) because Octave runs on top of bash in the same Terminal.app.

Without promise I hope that it also works like this on your PPC platform?!

  Thomas

moc.elbban schrieb:
This is an OS X problem. Everytime I start my terminal, it starts octave. And when I enter 'quit', it quits the shell. So then, the only way I can
run commands is by typing, for example, "system('ls')".  There is nothing in
my .bashrc or .profile that is sneaky.
Here is what happens when I start a new shell in Terminal and then check my
processes:
"

Last login: Wed Sep 12 13:49:59 on ttyp1
Welcome to Darwin!
exec '/Applications/Octave.app/Contents/Resources/bin/octave'
XXX:~ XXX$ exec '/Applications/Octave.app/Contents/Resources/bin/octave'
GNU Octave, version 2.9.13
Copyright (C) 2007 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i386-apple-darwin8.9.1".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave-2.9.13:1> system('ps aux | grep ctave')
XXX     956   0.0  0.1    27728    640  p1  S+    1:50PM   0:00.02 /bin/sh
/Applications/Octave.app/Contents/Resources/bin/octave
XXX     978   0.0  1.7    98376  17380  p1  S+    1:50PM   0:01.09
/Applications/Octave.app/Contents/Resources/bin/octave-2.9.13
XXX     979   0.0  0.1    27728    596  p1  S+    1:51PM   0:00.00 sh -c ps
aux | grep ctave
XXX     981   0.0  0.0    18060    240  p1  R+    1:51PM   0:00.00 grep
ctave
ans = 0
octave-2.9.13:2> "
  I see that line "exec
'/Applications/Octave.app/Contents/Resources/bin/octave'" up top.  Its a
sneaky one, can't find out who's putting it there.  Any ideas?  I'm on a
MacBook running 10.4.10.

-seth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]