I am trying to find if anyone can provide me an example code to execute bash commands using fantom code.
Also please attach few docs reference on all the methods what fantom supports for executing the commonds on operating system.
Hi @Sai, you can use the Process class to execute OS executables. Example:
@Sai
Process(Str["ls"], `./`.toFile).run.join
Login or Signup to reply.
Sai Thallada Fri 6 Sep 2024
I am trying to find if anyone can provide me an example code to execute bash commands using fantom code.
Also please attach few docs reference on all the methods what fantom supports for executing the commonds on operating system.
SlimerDude Fri 6 Sep 2024
Hi
@Sai
, you can use the Process class to execute OS executables. Example: