Macaulay2 input file

59 views
Skip to first unread message

DT

unread,
Nov 16, 2009, 5:51:19 AM11/16/09
to Macaulay2
Hello, im quite new to M2, and im wondering how I would go about
starting M2 with a pre-written .m2 file as parameter.
I've tried different variations of these, without success:
$ M2 --input "file"
and
$ M2 "file"

Daniel R. Grayson

unread,
Nov 16, 2009, 3:04:37 PM11/16/09
to maca...@googlegroups.com
The second form you mention should work. Use "M2 --help" to find out
what the possibilities are. Another way is "M2 <file". If those
possibilities don't work for you, email to me privately the output
that appears on the screen so I can see why you think you had no
success.

Example:

thallium$ echo 'print 100!' > bar.m2
thallium$ M2 bar.m2
Macaulay2, version 1.3.1
with packages: ConwayPolynomials, Elimination, IntegralClosure,
LLLBases, PrimaryDecomposition, ReesAlgebra, SchurRings, TangentCone
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

i1 :
thallium$

René Birkner

unread,
Nov 17, 2009, 2:30:44 AM11/17/09
to Macaulay2
Hi,

you say that you have an .m2 file. If your file is foo.m2 you have to
use the ending, i.e.:
$ M2 foo.m2

DT

unread,
Nov 17, 2009, 6:01:46 AM11/17/09
to Macaulay2
I got friend to try it on his computer, and he got it to work right
away. So im guessing its something wrong with my installation. Thanks
for the help.

josephine.yu

unread,
Nov 17, 2009, 1:09:16 PM11/17/09
to Macaulay2
You can also do:
M2 < "file"
Or at M2 command prompt, type:
load "file"
Reply all
Reply to author
Forward
0 new messages