Sorry for the vague title, it's a bit hard to describe in one sentence :)
I have a cron job that runs on a FC4 machine. The cron job, running as root, runs just fine, but one line in the script that is running redirects the output to a file and it does not work as expected.
For example:
wget --user=user --password=password \
--no-check-certificate -O output.txt \
http://server/location/jobadmin.php?menu=16
cat output.txt | grep -o \
'\(location\/autoprocess_test.php?autoprocesskey=true&\)\([a-Z0-9=&-]\)\{1,\}' \
> jobs.txt
I've noticed that when I run this script manually as root, it works just fine. However, when it runs on the cron, it does not redirect output to the files specified, it just leaves a 0 byte file in it's place.
Not sure if this is something trivial or difficult, but does anyone have any ideas as to why this is happening?
Thanks!
Ian