I need to run a list of csh commands on the unix terminal from a matlab script.
Whenever I try to use the system() function, it gets into a infinite loop in the script (the control goes to the terminal in MATLAB.
Until I type the exit command in MATLAB terminal, the control does not go back to the script execution.
As the first line is csh, the rest of the line becomes useless.
I am not able to understand how to achieve this.
The list of commands are as follows:
csh
source /home/install/cshrc
setenv ...
setenv ...
{ some software specifc commands}
Thanks in advance
Aksh
3 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146123
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146123
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146153
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146153
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146173
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653478-list-of-csh-commands-to-be-run-from-matlab-script#comment_1146173
Sign in to comment.