This is part of another script, too long for here, but isolating this part, my dilemma is that this works when manually invoked from IDLE, but not when run as a cron job.
from datetime import datetime import os # check to see if a log file exists, make one if it doesn't if os.path.exists("C:\\Dir1\\Sub One\\Sub3\\Sub4\\Sub Five\\logfile.txt"): log = open('logfile.txt', 'r') else: log = open('logfile.txt', 'w+')
The rest of the script runs as a cron and does its tasks, but this log never gets done, whether creating a new file because none exists or opening an existing logfile.
Any ideas why this isn't triggered when run as a cron?
Using IntellAdmin Windows Cron 2 Config on windows 7 machine.
Edited by chophouse: Spelling