Vote count:
0
I need to determine the mail size to enforce quotas from perl. When I do du -bs /var/spool/mail/smith from the command line I get a correct number. But when I do the same command from perl (below) I always get 4096. I tried hard-coding the user (replacing $recipientUser) to be sure with same result. Selinux is not a factor. There are no errors in the logs.
if ($mailboxSize = `du -bs /var/spool/mail/$recipientUser`) {
I don't think there is an equivalent command in perl to get a directory size, so how do I do it ? Thanks in advance.
asked 19 secs ago
perl directory size not reporting the correct size
Aucun commentaire:
Enregistrer un commentaire