I have many files in / home / somedir / subdir / and I'm trying to move them all to / home / somedir programmatically.
right now i have this:
subprocess.call(["mv", "/home/somedir/subdir/*", "somedir/"])
but this gives me this error:
mv: cannot stat `/home/somedir/subdir/*': No such file or directory
I know that it exists, because when I type the mv command manually using the same command as the script, it works fine.
python unix subprocess mv stat
CSStudent
source share