Mysterious EOFError

Rex Eastbourne rex.eastbourne at gmail.com
Sun Apr 9 02:07:54 EDT 2006


Hi,

I'm executing a python script as a cron job. When I run it myself from
the command line it works, but when cron executes it I get an EOFError:

File "/home/rex/cronscript.py", line 6, in ?
    level = int(raw_input("hello?"))
EOFError: EOF when reading a line

It's not the last line of the file.

When I run it as root from the command line I don't get any errors.

Any ideas?




More information about the Python-list mailing list