title: List the cron jobs scheduled by apscheduler
body: <p>I am using the <a href="http://apscheduler.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">Advanced Python Scheduler</a> module in my scripts to schedule a job for every last day of the month. I am running this python script as a <code>systemd</code> script in CentOS machine.</p>
  
  <pre><code>from apscheduler.schedulers.blocking import BlockingScheduler
  
  if __name__ == '__main__':
      sched = BlockingScheduler()
      sched.add_job(lambda: my_aggregation_function(url_list, 'monthly'), 'cron', day='last')
      while True:
          sched.start()
  </code></pre>
  
  <p>I restarted my script(systemd) by adding these changes and the script is now running with the job scheduled. </p>
  
  <p>My question is how do I confirm if the job is scheduled from my python script to be run as I configured. I did a cron list as below but couldn't find any listings scheduled.</p>
  
  <pre><code>crontab -u root -l  
  </code></pre>
  
  <p>Also for a test job on interactive shell,</p>
  
  <pre><code># python
  Python 2.7.5 (default, Nov  6 2016, 00:28:07) 
  [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; from apscheduler.schedulers.blocking import BlockingScheduler
  &gt;&gt;&gt; sched = BlockingScheduler()
  &gt;&gt;&gt; def job_function():
  ...     print "Hello World"
  ... 
  &gt;&gt;&gt; sched.add_job(job_function, 'cron', day='last')
  &lt;Job (id=c4b232a453dd4b5dbea5ef413d7a8c4d name=job_function)&gt;
  &gt;&gt;&gt; sched.start()
  </code></pre>
  
  <p>How do I see the details of the job id (<code>c4b232a453dd4b5dbea5ef413d7a8c4d</code>) mentioned? Is it possible to look in this way.</p>
  
  <p>Also I looked up another module <a href="https://pypi.python.org/pypi/python-crontab" rel="nofollow noreferrer">python-crontab</a> for managing <code>cron</code> jobs. This also didn't list the jobs</p>
  
  <pre><code>&gt;&gt;&gt; from crontab import CronTab
  &gt;&gt;&gt; my_cron = CronTab(user='root')
  &gt;&gt;&gt; for job in my_cron:
  ...     print job
  ...
  </code></pre>