newbie playing with glob

Andrew Replogle replogle992 at hotmail.com
Thu Jan 17 15:53:20 EST 2002


Hello,

 I am a python newbie and this language looks really cool. I have no
previous programming experience and this is where I'd like to start.
What I am currently doing is writing little programs for small unix
administration tasks. I'm stuck on one of these programs.

I'm trying to create a .forward in every home directory on the system.
Here's what I've been using:

import os, sys, glob

for file in glob.glob('/home//*//*'): 
    os.exec(touch file/.forward)

and I've tried a couple combinations with no luck.. any insight would
greatly be appreciated.

Thanks,
Andrew



More information about the Python-list mailing list