
-----------------------------------
corriep
Fri May 08, 2009 5:48 pm

Running a separate turing file with the system () command.
-----------------------------------
Hey guys quick question, what is the system () command to run a separate turing file?. For example, I want to create a file that runs "Hello, World!":var OUT : int
open : OUT, "file.t", put

put : OUT, "put \"Hello, World!\""
var foo : int
system ("command here", foo)

PS. found a bug w/ the preview button, when it is pressed in the Turing Help section, all your previous text is replaced by the template text :?

-----------------------------------
Tony
Fri May 08, 2009 7:50 pm

RE:Running a separate turing file with the system () command.
-----------------------------------
it's [tdoc]Sys.Exec[/tdoc]. Though that could be used to start any executable file. Meaning that you would first have to compile the code.

-----------------------------------
corriep
Fri May 08, 2009 8:25 pm

RE:Running a separate turing file with the system () command.
-----------------------------------
Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?

-----------------------------------
Euphoracle
Fri May 08, 2009 9:25 pm

RE:Running a separate turing file with the system () command.
-----------------------------------
Download turing 4.1, and compile it.  4.1.1a won't do it.

In the Run menu under generate standalone program.

-----------------------------------
andrew.
Sat May 09, 2009 9:55 am

Re: RE:Running a separate turing file with the system () command.
-----------------------------------
Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?You can't. You must compile it inside of Turing beforehand.
