Problem with subprocess.call and cp

Torsten Bronger bronger at physik.rwth-aachen.de
Sun Oct 23 07:54:12 EDT 2005


Hallöchen!

The following code

from subprocess import call
call(['cp', 'subdir/*.jpg', 'othersubdir/'])

yields

cp: call of stat for "subdir/*.jpg" not possible: File or directory not found

(This may not be the real error message since it's back-translated
from German.)  I could use shell=True, however, what's going wrong
here?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus            ICQ 264-296-646



More information about the Python-list mailing list