[SciPy-user] subprocess

Jim Vickroy Jim.Vickroy@noaa....
Tue Jun 23 12:20:45 CDT 2009


Nils Wagner wrote:
> On Tue, 23 Jun 2009 10:52:13 -0600
>   Jim Vickroy <Jim.Vickroy@noaa.gov> wrote:
>   
>> Nils Wagner wrote:
>>     
>>> Hi all,
>>>
>>> Sorry if the subject is off-topic.
>>>
>>> How can I run gimp from python using subprocess ?
>>>
>>> I would like to use several arguments, e.g.
>>>
>>> gimp --batch-interpreter=plug-in-script-fu-eval -i -d -b 
>>> '(script-autocrop "a.png")' -b '(gimp-quit 0)'
>>>
>>>
>>> Thanks in advance.
>>>
>>>                Nils
>>> _______________________________________________
>>> SciPy-user mailing list
>>> SciPy-user@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>>   
>>>       
>> ... don't know what Python version you are using but 
>> recent releases (version 2.4 and later) include the 
>> *subprocess* module.
>>
>> Questions of this sort are best posted to 
>> *comp.lang.python*.
>>     
>   
> Thank you for your response.
> I know how to import subprocess, but how do I deal with 
> all the quotes in the argument list
> of my gimp command ?
>
> Nils
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>   
It is usually a good idea to (at a minimum) post:

    *  a small script that demonstrates the error
    * the exact text of the error the script triggers
    * the version of Python you are using
    * the OS you are using


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090623/1f32fee8/attachment.html 


More information about the SciPy-user mailing list