clinty
March 6th, 2009, 12:33
Hello.
I have a strange problem.
This is my script:
/bin/sh
du -s /bin
du -sh /bin
When I run this script (as root), I have:
992 /bin
992K /bin
Ok, that's normal. But when I insert this script in my root cronjob, like this:
* * * * * /test
I have:
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,
I have a strange problem.
This is my script:
/bin/sh
du -s /bin
du -sh /bin
When I run this script (as root), I have:
992 /bin
992K /bin
Ok, that's normal. But when I insert this script in my root cronjob, like this:
* * * * * /test
I have:
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,