python backup script
John Gordon
gordon at panix.com
Mon May 6 18:15:44 EDT 2013
In <36d2b7cf-2537-46a6-b984-9fce7ddd33ff at googlegroups.com> mina at socialassets.org writes:
> > cmd2 = subprocess.Popen(['gzip' '-c'],
> >
> > shell=False,
> >
> > stdout=filename
> >
> > stdin=cmd1.stdout)
> Thank you Enrico. I've just tried your script and got this error:
> stdin=cmd1.stdout)
> ^
> SyntaxError: invalid syntax
Looks like you need a comma after 'stdout=filename'.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list