commands.getoutput help
yo_james at my-deja.com
yo_james at my-deja.com
Tue Feb 22 18:22:35 EST 2000
Hello,
I was wondering if it was possible to pass a
string into the commands.getoutput module? Here
is an example of what I want to do:
source = '/home/from/'
destination = '/home/to/'
# rsync copies files from the source to a
# destination
rsync = commands.getoutput('rsync %s %s')
%(source,destination)
Any help will be greatly appreciated.
James
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list