Discussion:
[GRASSGUI] why won't this execute in cmd.py?
Michael Barton
2007-11-14 22:56:51 UTC
Permalink
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-gui/attachments/20070610/f8977a51/attachment.html
Glynn Clements
2007-11-14 22:56:51 UTC
Permalink
Post by Michael Barton
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 <***@gclements.plus.com>
Loading...