newbie playing with glob

Andrew Replogle replogle992 at
Thu Jan 17 21:53:20 CET 2002


 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.


More information about the Python-list mailing list