I use at to schedule jobs and atq to display the scheduled jobs. But it mildly irritates me in that I have to look up each job individually.  I wrote a Python script to display the scheduled job under the scheduled time. (In my world all the commands will begin 'task') So instead ofstafflinux$atq8   Mon Aug 18 09:00:00 2014 a joseph10  Tue Aug 19 09:00:00 2014 a joseph15  Thu Aug 21 09:00:00 2014 a joseph12  Fri Aug 22 09:00:00 2014 a joseph9   Thu Aug 21 09:00:00 2014 a joseph14  Sat Aug 30 09:00:00 2014 a joseph7   Sun Aug 17 09:00:00 2014 a joseph6   Mon Aug 18 09:00:00 2014 a joseph11  Sat Aug 30 09:00:00 2014 a josephstafflinux$My script producesstafflinux$./atscript.py 8  Mon Aug 18 09:00:00 2014 a josephtask buy a four-way plug adapter task see guy about meeting -----------------------------------------10  Tue Aug 19 09:00:00 2014 a josephtask bring back personal effects from office -----------------------------------------15  Thu Aug 21 09:00:00 2014 a josephtask book tickets for next week-----------------------------------------I'm looking for any feedback - particularly in terms of 'pythonic' style and any and all tricks I may have missed:#!/usr/bin/pythonimport osos.system(atq > attemp.txt) file = open(attemp.txt)line = file.readline()while line:     number =line[:2]    print line.strip()    os.system(at -c + number+ | grep task)    line=file.readline()    print '-----------------------------------------'print lineos.system(rm attemp.txt)
Displaying a scheduled job under a scheduled time
python;child process;scheduled tasks