Re: Few Coding suggestions - resending

2015-01-12 Thread Ganesh Pal
On Mon, Jan 12, 2015 at 8:42 AM, Ganesh Pal ganesh1...@gmail.com wrote: On Sun, Jan 11, 2015 at 7:57 PM, Dave Angel da...@davea.name wrote: No idea how that represents a difference of 5 minutes. So I'll take a totally wild guess that you meant: Sunday 23:50 23:55 Monday 00:00 00:05

Re: Few Coding suggestions - resending

2015-01-12 Thread Ganesh Pal
Thanks to all and dear Dave Angel, I got this working :) , using your valuable inputs . Here is the final program: Throttling-1# cat sleep_schedule_file.py #!/usr/bin/python import time import pdb from datetime import date, time, datetime, timedelta #'''run these on the remote commmand ''' n

Few Coding suggestions - resending

2015-01-11 Thread Ganesh Pal
Hello Team, Iam trying to generate a file which should have the contents in the below format # cat /root/schedule.conf Sunday 10:20 10:30 Sunday 10:30 10:40 Sunday 10:50 10:60 I have to build the above format on the local linux machine using python 2.7 version and then copy the file to the

Re: Few Coding suggestions - resending

2015-01-11 Thread Dave Angel
On 01/11/2015 06:47 AM, Ganesh Pal wrote: Hello Team, Iam trying to generate a file which should have the contents in the below format # cat /root/schedule.conf Sunday 10:20 10:30 Sunday 10:30 10:40 Sunday 10:50 10:60 I have to build the above format on the local linux machine using

Re: Few Coding suggestions - resending

2015-01-11 Thread Ganesh Pal
On Sun, Jan 11, 2015 at 7:57 PM, Dave Angel da...@davea.name wrote: No idea how that represents a difference of 5 minutes. So I'll take a totally wild guess that you meant: Sunday 23:50 23:55 Monday 00:00 00:05 Monday 00:10 00:15 Monday 00:20 00:25 Monday 00:30 00:35 which would have