Guest User

Untitled

a guest
Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. math -script test.m
  2.  
  3. math -run < test.m
  4.  
  5. math < test.m
  6.  
  7. MathematicaScript test.m
  8.  
  9. math -noprompt -run "<<test.m"
  10.  
  11. math -run file.m
  12.  
  13. math < file.m
  14.  
  15. #!/usr/local/bin/MathematicaScript -script
  16.  
  17. Print["Hello"]
  18.  
  19. Mathematica 10.0 for Linux x86 (64-bit)
  20. Copyright 1988-2014 Wolfram Research, Inc.
  21.  
  22. In[1]:=
  23. #1!
  24. Out[1]= -script + -------------------------------
  25. bin local MathematicaScript usr
  26.  
  27. In[2]:= In[2]:= Hello
  28.  
  29. In[3]:=
  30.  
  31. WolframScript -script file.m
  32.  
  33. patrick@lenerd:~/tmp$ ./file.m
  34. Hello
  35. patrick@lenerd:~/tmp$
  36.  
  37. #!/usr/local/Wolfram/Mathematica/11.3/Executables/wolframscript -script (*Default installation place for Mathematica 11*)
  38. (* Your Code *)
  39. Print["Hello World"];
  40.  
  41. ./file
Add Comment
Please, Sign In to add comment