Hello.
I have a strange problem.
This is my script:
When I run this script (as root), I have:
Ok, that's normal. But when I insert this script in my root cronjob, like this:
I have:
Is anybody could explain me why 'du -s' returns different values. This is the same directory, the same script. The first is run manually, the second in a cronjob.
I don't have the problem with 'du -sh'.
Thanks a lot.
Regards,
I have a strange problem.
This is my script:
Code:
/bin/sh
du -s /bin
du -sh /bin
When I run this script (as root), I have:
Code:
992 /bin
992K /bin
Ok, that's normal. But when I insert this script in my root cronjob, like this:
Code:
* * * * * /test
I have:
Code:
1984 /bin
992K /bin
Is anybody could explain me why 'du -s' returns different values. This is the same directory, the same script. The first is run manually, the second in a cronjob.
I don't have the problem with 'du -sh'.
Thanks a lot.
Regards,