@alan: Thank you very much for the information you provided and also for
suggesting your tutorial. I am now studying the subprocess module. I was
impressed with the depth of your tutorial and am studying it as well (and not
just for my current problem). Thanks again.
@dave: Thanks for your repl
robert mcquirt wrote:
Hi. I've not been working with Python very long and have run into a puzzling
thing. I'm working on a program that needs to identify the filetype of files
without extensions. Using the file command in the shell works fantastic, as in:
rob...@ubuntu:~$ file -b linu
"robert mcquirt" wrote
import os
os.system('file -b /home/robert/linuxlogotag')
This also works fine. The problem is that when I try to replace
the hard coded path/name with a string variable for looping,
the results are not the same as the shell's.
import os, glob
path = '/home/robert
Hi. I've not been working with Python very long and have run into a puzzling
thing. I'm working on a program that needs to identify the filetype of files
without extensions. Using the file command in the shell works fantastic, as in:
rob...@ubuntu:~$ file