why won't this execute in cmd.py?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

why won't this execute in cmd.py?

Michael Barton
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


_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: why won't this execute in cmd.py?

Glynn Clements

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 <[hidden email]>

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui