Post Reply 
Console
06-10-2015, 09:35
Post: #5
RE: Console
(05-10-2015 23:09)MarmiteSandwich Wrote:  Just found this. Great. Now, can I get the console to process a text scripting file? E.g. one that says:

Rescan
Exit

Marmite

A full scripting capability for MinimServer will be available soon.

For now, you could use process input redirection for the MinimWatch console, for example:

cd "\Program Files\MinimWatch\lib"
java -jar mwatch.jar --set minimwatch.view=console <C:\myscripts\rescan.txt


where rescan.txt contains the MinimWatch commands that you want to run.

MinimWatch commands are case-sensitive, so you need to enter 'rescan' and 'exit' in lower case. Also, you need to start the script with a 'sleep' command to give MinimWatch enough time to discover MinimServer before issuing the 'rescan' command. It is advisable to use another 'sleep' command after the 'rescan' command to ensure that the 'rescan' command has enough time to complete its processing before MinimWatch exits. The following is working for me:

sleep 3
rescan
sleep 2
exit


The upcoming MinimServer scripting facility won't require these extra 'sleep' commands to be added.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Console - NWTStuff - 05-08-2014, 13:38
RE: Console - simoncn - 05-08-2014, 14:30
RE: Console - NWTStuff - 06-08-2014, 09:12
RE: Console - MarmiteSandwich - 05-10-2015, 23:09
RE: Console - simoncn - 06-10-2015 09:35
RE: Console - MarmiteSandwich - 06-10-2015, 10:13

Forum Jump:


User(s) browsing this thread: 1 Guest(s)