How to automatically run several impu... PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 arcis_pau@yahoo.co.uk posted on Wednesday, June 06, 2012 - 7:44 am
Is it possible to have a master mplus .imp file that calls up a number of .imp files which define different SEM model? If so, how do I specify it?
 Linda K. Muthen posted on Wednesday, June 06, 2012 - 8:33 am
One way to do this is to use a DOS bat file. Go to the command prompt and create a file with the following commands:

call Mplus inp1.inp
call Mplus inp2.inp
etc.

The file extension should be .bat, for example, input.bat. To run the file type input at the command prompt.
 arcis_pau@yahoo.co.uk posted on Wednesday, June 06, 2012 - 9:22 am
Thanks Linda - It works perfectly!
 arcis_pau@yahoo.co.uk posted on Thursday, June 14, 2012 - 2:22 am
Could you do something similar when running the Linux version? I had to switch as I am on a new server...

Many thanks
 Linda K. Muthen posted on Thursday, June 14, 2012 - 11:30 am
Yes, you can create a text file with a list of commands to execute. Then you have to make the file an executable by using the "chmod" command. That makes the file an executable and then you can run it at the prompt and it will execute all the commands in the file.
 arcis_pau@yahoo.co.uk posted on Friday, June 15, 2012 - 3:04 am
Thank you for your prompt reply.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: