Search code examples
shellsmlsmlnj

SML/NJ run external commands/scripts


Is it possible to run bash shell commands via SML/NJ?

In Python, it would be using modules like subprocess

I am hoping to use diff fileA fileB in an sml script.


Solution

  • One could use system function in OS.Process structure.

    OS.Process.system "diff fileA fileB";