I would like to run dynare on a remote machine which is running matlab. How can I run this from the command line?

I have tried the following:

and get

dynare is in the matlab path, however.

I also tried

and the output is:

[quote]Configuring Dynare …
[mex] Generalized QZ.
[m] Sylvester equation solution.
[m] Kronecker products.
[m] Sparse kronecker products.

??? DYNARE: you must provide the name of the MOD file in argument


Any advice? I would really like to log out of the machine and let the program run in the background. Is there a better/feasible way to do this?

Maybe not the most elegant way but it works:

1: complie your dynare mod file as usual on you desktop pc: dynare file.mode

2: Afterwards, copy all generated files (file.m, file_dynamic.m etc.) on your remote desktop

3: Now you can start matlab in the shell: matlab -nodisplay <file.m >output.txt &

Best regards



The simplest way is to create a M-file (say “foo.m”) containing only the call to dynare:

dynare ramsey.mod

and then launch that M-file from the command line:

matlab -nodisplay -r foo


That does it. Very simple indeed. Thanks.