[GRASS-dev] why won't this execute in cmd.py?

Martin,

Any idea why this won’t execute in cmd.py?

cmdlst = [‘d.mon’,‘start=%s’ % xmon, ‘&’] p = cmd.Command(cmdlst)
Michael


Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

Any idea why this won't execute in cmd.py?

        cmdlst = ['d.mon','start=%s' % xmon, '&']
        p = cmd.Command(cmdlst)

Is the '&' supposed to be an argument? Shell syntax won't work if you
aren't using a shell.

If you want to run a command in the background, use Command(..., wait=False).

--
Glynn Clements <glynn@gclements.plus.com>