script no values if in crontab
I just created a script that when run, it will output the ff:
[root@smtp01 intigrix]# /var/intigrix/rate.sh > /var/intigrix/rates.txt
[root@smtp01 intigrix]# cat rates.txt
0,,99.08,0,OK
99.08 is a variable while the rest including 0 is a fixed values.
The problem is when I already put it in crontab, it only display the ff:
0,,,0,OK
The 99.08 is missing. My entry in crontab is the ff:
*/1 * * * * /var/intigrix/rate.sh > /var/intigrix/rates.txt
Is there a limitation in cron daemon? Just remember that when I do the commands in shell, it is ok but when I put it in cron, it has no values.
|