problem with a script and the cron

hello

I use a script to give me the number of users, at each hour.
this script read a file where there is the number of users for each hour and for each month (so 12 files per year).
If i execute the script (root), it is ok, i have xxx users for each hour.
if I put the script in the cron (crontab -e), and kill the cron, the planification is right, the script is executed, but I have "0" user as result for each hour !
I have verified the file's permissions, and chmod 777 for each file, but it's same !!!

can you help me ?

thank you

the biggest problem with scripts in cron is you loos the environment (env) you have as a user

So make sure all the scripts and commands use absolute path
Don't use who use /usr/bin/who etc
If you need to find the command just use type who

Home this helps
:smiley: