Macaulay2 » Documentation
Packages » Macaulay2Doc :: Program << Thing
next | previous | forward | backward | up | index | toc

Program << Thing -- run program with input redirection

Synopsis

Description

Write x to a temporary file and run prog with this file as input using input redirection (the < operator in a POSIX shell).

i1 : M2 = findProgram "M2"

o1 = M2

o1 : Program
i2 : M2 << "2 + 2"

o2 = 0

o2 : ProgramRun
i3 : toString oo

o3 = 
     i1 : 2 + 2
          
     o1 = 4

See also

Ways to use this method: