Thank you :) Eric
>From: "Parthan SR" <[EMAIL PROTECTED]> >To: "Eric Price" <[EMAIL PROTECTED]> >Subject: Re: os.system questions >Date: Sat, 31 Mar 2007 19:52:01 +0530 > >On 3/31/07, Eric Price <[EMAIL PROTECTED]> wrote: >> >>Oops! The problem isn't in the os.system call. It's in the fact that I >>don't >>call the function. That is, I write a script called "test.py" with a >>function in it called "freshReboot". Now, how do I call that function from >>test.py? That is, how do I write a cron event such that "freshReboot" >>actually gets called when I run test.py? > > >Just call the function name within the test.py itself > >def freshReboot(): >... >... >... >... > >if __name__ == '__main__': > freshReboot() > >(or) > >freshReboot() > >Now, run test.py. If you are printing anything or having a return value, >then it will be displayed in the terminal from where you call the program. >If you are executing it from another script, then the return value will be >returned where it is being called. >-- >With Regards > >--- >Parthan.S.R. >Research Assistant >National Resource Center for Free/Open Source Software >Python Developer n00b _________________________________________________________________ Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581 -- http://mail.python.org/mailman/listinfo/python-list