python backup script
MRAB
python at mrabarnett.plus.com
Mon May 6 18:28:07 EDT 2013
On 06/05/2013 23:12, mina at socialassets.org wrote:
> On Monday, May 6, 2013 5:48:44 PM UTC-4, Enrico 'Henryx' Bianchi wrote:
>> Enrico 'Henryx' Bianchi wrote:
>>
>> > cmd2 = subprocess.Popen(['gzip' '-c'],
>> > shell=False,
>> > stdout=filename)
>>
>> Doh, my fault:
>>
>> cmd2 = subprocess.Popen(['gzip' '-c'],
>> shell=False,
>> stdout=filename
>> stdin=cmd1.stdout)
>>
>> Enrico
>
> Thank you Enrico. I've just tried your script and got this error:
> stdin=cmd1.stdout)
> ^
> SyntaxError: invalid syntax
>
> any idea?
>
Missing comma on the previous line.
More information about the Python-list
mailing list