passing vars to py scipts in cron jobs

brad byte8bits at gmail.com
Tue Aug 7 23:45:46 CEST 2007


What's the proper way to call a py script and pass in variables while 
doing cron jobs? I can run the scripts fine from idle, python, etc using 
raw_input() to prompt users. The scripts have classes with methods that 
need arguments. Here's an example... I want to run c1.d1(v,v,v) then 
c2.d2(v,v,v)

class c1:
   # User defined vars
    def d1(var1, var2, var3):
       pass

class c2:
    # User defined vars
    def d2(var1, var2, var3):
       pass

Thanks,
Brad



More information about the Python-list mailing list