Originally Posted by rustek
Best guess is that you are running the script as root from cron.
12 * * * * root /whatever/yourscript
Try something more like:
12 * * * * rlitwez /whatever/yourscript
If your interested in automating interactive programs, check out Expect, and get a copy of the script Autoexpect.
Im setting up this cron job under my usernames crontab (not root) so i was assuming that its gonna run under my username even without specifying my username in the cron. But ive just added my username like you said but its still the same...
anyways, thanks for your comments ill also check out that Expect program...