Comments below. On 9/12/07, chinni <[EMAIL PROTECTED]> wrote: > > Hi, > Thanx for Responding for the Query. > The actual Output what i want is my python script has to change the > version number(degrade) in plist file.and automatically change the time to > 25 hrs more from present time cause my product will check for updates for > every 25hrs. > But u all told that cronjob and at inbuilt features of UNIX but every time > ihave to manually go and change the version.i can't so that's why i want > to write a script for this > > 1.open the app > 2.degrade the version automatically to least version What is the manual process for this task? More info is need here. Is plist a text file?
3.change the time to 25hrs more Are we changing the system time 25 hours ahead, changing a time variable in the script, or flag/timestamp in the plist file? 4.check for updates(1.force Update and silent update) This is achievable with a system call. 5.the whole procedure is for admin and non-admin users We change the unix file permission to restrict which user and groups are allowed access to the file. can i implement this by using both python and shell scripting.if possible > give the reference book for quick learn. >From what we know so far, yes. Please share what you have coded so far. Message: 2 > > Date: Tue, 11 Sep 2007 22:24:37 +0530 > > From: chinni <[EMAIL PROTECTED]> > > Subject: [Tutor] automate daily tasks > > To: tutor@python.org > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hi all, > > > > I am working on MAC OS x my project is updating all ready installed > > products.I have to automate this in python.so,can any one will give some > > suggestions and some examples how to automate.some basic things of my > > project is ... i think u all know that there will be a plist file for > > each > > product in mac.i have to degrade the version of plist automatically > > through > > my script and it has to edit the plist file and degrade it to least > > version > > and as to check for updates by itself.like this there are 15 products > > under > > this now each time i can't go and degrade the version and save it and > > run > > updates manually..so,that can any one plz..tell me how to start from > > first > > step... > > > > -- > > Best Regards, > > M.Srikanth Kumar, > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > > http://mail.python.org/pipermail/tutor/attachments/20070911/75c73c5e/attachment-0001.htm > > > > ------------------------------ > > > > Message: 3 > > Date: Tue, 11 Sep 2007 13:03:54 -0400 > > From: "Tom Tucker" < [EMAIL PROTECTED]> > > Subject: Re: [Tutor] automate daily tasks > > To: [EMAIL PROTECTED] > > Cc: tutor@python.org > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Are you looking for a method to automate the execution of your Python > > program? Is that the question? > > If yes, have you tried using cron or at jobs (man cron or man at). > > > > Tom > > > > On 9/11/07, chinni < [EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > I am working on MAC OS x my project is updating all ready installed > > > products.I have to automate this in python.so,can any one will give > > some > > > suggestions and some examples how to automate.some basic things of my > > > project is ... i think u all know that there will be a plist file for > > each > > > product in mac.i have to degrade the version of plist automatically > > > through my script and it has to edit the plist file and degrade it to > > least > > > version and as to check for updates by itself.like this there are 15 > > > products under this now each time i can't go and degrade the version > > and > > > save it and run updates manually..so,that can any one plz..tell me how > > to > > > start from first step... > > > > > > -- > > > Best Regards, > > > M.Srikanth Kumar, > > > > > > > > > _______________________________________________ > > > Tutor maillist - Tutor@python.org > > > http://mail.python.org/mailman/listinfo/tutor > > > > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > > http://mail.python.org/pipermail/tutor/attachments/20070911/ea45fd19/attachment-0001.htm > > > > > > ------------------------------ > > > > Message: 4 > > Date: Tue, 11 Sep 2007 18:37:33 +0100 > > From: "Alan Gauld" <[EMAIL PROTECTED]> > > Subject: Re: [Tutor] automate daily tasks > > To: tutor@python.org > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > > reply-type=original > > > > > > "chinni" <[EMAIL PROTECTED]> wrote > > > > > I am working on MAC OS x my project is updating all ready installed > > > products.I have to automate this in python.so,can any one will give > > > some > > > > sounds fair. > > > > > project is ... i think u all know that there will be a plist file > > > for each > > > product in mac. > > > > I wouldn't assume too much knowledge of how MacOS works, > > despite Apple's recent successes its still very much a > > minority OS! I own an iBook and use the Terminal for unix > > type stuff but I rarely delve inside the MacOs specifics. > > > > > i have to degrade the version of plist automatically through > > > my script and it has to edit the plist file and degrade it to least > > > version > > > and as to check for updates by itself.like this there are 15 > > > products under > > > this now each time i can't go and degrade the version and save it > > > and run > > > updates manually..so,that can any one plz..tell me how to start from > > > first > > > step... > > > > Nope, sorry. You lost me on that one. > > Can you give some example data formats. > > And maybe show us what you are trying to do with them? > > > > > > -- > > Alan Gauld > > Author of the Learn to Program web site > > http://www.freenetpages.co.uk/hp/alan.gauld > > > > > > > > > > > > > > -- > Best Regards, > M.Srikanth Kumar, > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > >
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor