Πέμπτη, 8 Φεβρουαρίου 2018

Call a linux program from M2000

Win and Dos are two commands to talk to operating system. Win is like start. We can provide a second parameter for passing parameters

We can open notepad using Win command
 
win "notepad"

win "notepad", dir$+"αλφα.gsb"

We can run a Linux program using Dos command


\\ run gedit from M2000 running in Wine, Ubuntu Studio. We can place a second parameter for waiting a specific time in milliseconds.



dos "wineconsole"
dos "cmd /c start /unix /usr/bin/gedit"
dos "cmd /c start /unix /usr/games/gnome-mines"