I have the following .m file
(* ::Package:: *)
(* ::Input:: *)
(*out=1+1;*)
(*Print["Test"];*)
(*Export["/path/test.txt",out];*)
and I am trying to run it in the terminal with
math -run -nomprompt < name.m
but it doesn't work. I have changed the permissions of the .m file.
-nompromptcontains a typo. – LouisB Apr 09 '20 at 19:26