However the crontab line I installed doesn't seem to be working!
here is the python script I want to run every 1 minute:
Code: Select all
#/usr/bin/env python
import sys
import urllib2
import json
import time
import datetime
import os
path = "/home/pi/sources/reader/"
#defining pathway
os.chdir(path)
localtime = time.asctime( time.localtime(time.time()) )
print localtime
with open( 'log3.txt', 'a') as log3 :
print >>log3, localtime
Code: Select all
pi@raspberrypi:~/sources/reader $ sudo python timecrontest.py
Mon Jun 13 21:58:16 2016
Code: Select all
*/1 * * * * /home/pi/sources/reader/timecrontest.pyThank you