[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] [RaQ4] weird cron problem



fully patched RaQ4, MySQL 3.23.54, ChiliASP 3.6.2

i have a cron script set up to run at 7.30am each morning which intercepts a
mail i get sent at 4am every morning. it's supposed to save the attachment
(.gz file), unzip it and then run an asp script which parses the output and
updates a mysql database. only problem is it's not working! i'm getting a
cron error every morning.
now when i manually send the mail to the server and manually run the cron
job, it all works fine.

any ideas? it might be an asp problem (it runs 2 asp scripts - one to save
the attachment and one to parse it) but i thought i'd run it through the
list in case there's something i'm missing.

here's the cron file (in a directory /etc/cron.seven which has been added to
crontab):
#!/bin/sh
cd /home/sites/site4/web/msc
touch stat.csv
rm stat.csv

TERM=vt100
/usr/bin/lynx -source http://www.domain.com/script1.asp>/dev/null
gunzip -d stat.csv.gz
/usr/bin/lynx -source http://www.domain.com/script2.asp>/dev/null

the error i'm getting is:
stat.csv.gz: No such file or directory
/home/sites/site4/web/msc/stat.csv: not readable

cheers

andy