CC: | "HACKER Nora" <nora.hacker [...] stgkk.at> |
Subject: | AIX du via rexec |
Date: | Wed, 5 May 2010 09:04:21 +0200 |
To: | <bug-Net-Rexec [...] rt.cpan.org> |
From: | "HACKER Nora" <nora.hacker [...] stgkk.at> |
Hi,
I want to check the size of a directory on a remote machine but do not
get the correct result:
my ( $rc2, $backupsizetrans ) =
rexec(
$backuphost,
'du -k ' # KB, zum Berechnen
. "$backupdir\/$backdir2"
. ' |tail -1 |awk \'{ print $1 }\''
);
chomp($backupsizetrans);
DEBUG("$fnc - Backupsizetrans 1: $backupsizetrans\n KB");
results to 72 KB, whereas the real directory size is 68 KB:
oracle:/opt/app/oracle/oradata4/dumps>du -k
MVSTADB_9.9.99.99_100505-085410
68 MVSTADB_9.9.99.99_100505-085410
oracle:/opt/app/oracle/oradata4/dumps>rexec hsr3s1p7 'du -k
/backup/MVSTADB_9.9.99.99_100505-085410'
68 /backup/MVSTADB_9.9.99.99_100505-085410
Kind regards,
Nora