Thanks. Do you know of a solution to this? I tried the following, which
I found on this newsgroup:
#
lines = open(sys.argv[1]).readlines()
#
sys.stdin = open('/dev/tty')
a = raw_input('Prompt: ')
#
sys.stdin = os.fdopen(3)
a = raw_input('Prompt: ')
#==
On Sat, 08 Apr 2006 23:07:54 -0700, Rex Eastbourne wrote:
> 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
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 fil