Hello
I run on Freenas 7.2.
I want to run a script in cron.
But a part of my script return false computing when it turn on cronjob.
You can see the problem line on my crontab file.
Next my crontab file:
when I execute the line directly in commande line, It display a good result and
When I execute the line whith cron, it display a false result (It multiply by two the Good result)
Perhaps anyone have meet this problem
Thanks RAF
I run on Freenas 7.2.
I want to run a script in cron.
But a part of my script return false computing when it turn on cronjob.
You can see the problem line on my crontab file.
Next my crontab file:
Code:
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who command
#
# Perform email status report.
54 12 * * * root find /mnt/data/home -mtime 1 -type f -exec ls -as {} \; | grep "dom_" | awk '{ SUM += $1} END { print SUM/1024/1024 }' >> /root/log/tata.txt
when I execute the line directly in commande line, It display a good result and
When I execute the line whith cron, it display a false result (It multiply by two the Good result)
Perhaps anyone have meet this problem
Thanks RAF