Fork: Difference between revisions

Content added Content deleted
(Fork en FreeBASIC)
Line 997: Line 997:
end</lang>
end</lang>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
This code will run a standalone Mathematica kernel, putting the result of a command in a temporary file:
This code will run a standalone Mathematica kernel, putting the result of a command in a temporary file:
<lang Mathematica>commandstring = First[$CommandLine] <> " -noprompt -run \"Put[Factorial[20],ToFileName[$TemporaryDirectory,ToString[temp1]]];Quit[]\""
<lang Mathematica>commandstring = First[$CommandLine] <> " -noprompt -run \"Put[Factorial[20],ToFileName[$TemporaryDirectory,ToString[temp1]]];Quit[]\""