why won't this execute in cmd.py?

2 messages Options
Embed this post
Permalink
Michael Barton

why won't this execute in cmd.py?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
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
Glynn Clements

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

Reply Threaded More More options
Print post
Permalink

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