calls to system() do not return, they leave me at shell prompt. Linux 2010b

Good day.
I'm having a few issues with my setup of MATLAB. I'll start with one per thread.
My most important issue at the moment is when "system('foo') is called, instead of returning to >> after the call is done, I'm stuck in the shell.
Line breaks do not work as expected in this editor...
>>system('ls') %newline BASH$ < nothing happens > %newline BASH$ exit
file1 file2 file2
ans
>>
I am using code from another party which relies on the use of system() and I'm stuck with it.
Can someone please shed some light on this problem.
Cheers
UPDATE: I tried 'copyfile()' which must call cp under the hood. This also hangs and waits for 'exit', with the same behaviour as the above.

 Risposta accettata

well..this is dumb...I forgot that I long time ago, added a line to by .tcshrc to call bash....because I couldn't change my default shell at the time...
live and learn...

Più risposte (0)

Categorie

Richiesto:

il 5 Giu 2014

Risposto:

il 6 Giu 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by