Code: Select all
root@CH3SNAS:/mnt/HD_a2/usenet/download/test# ./postprocess_lognew.sh /mnt/HD_a2/usenet/download/test/ /mnt/HD_a2/usenet/nzb/test.nzb /mnt/HD_a2/usenet/download/test/HomebreWare-Vers.3.4-Pro-2008.par2 2 0 0
[INFO] Unpack: test post-process script started
[INFO] Unpack: Not the last collection in nzb-file, exiting
root@CH3SNAS:/mnt/HD_a2/usenet/download/test#
Code: Select all
./postprocess_lognew.sh /mnt/HD_a2/usenet/download/test/ /mnt/HD_a2/usenet/nzb/test.nzb "" 2 1 0
Code: Select all
du -d 0 -h
Code: Select all
root@CH3SNAS:/mnt/HD_a2/usenet/download# du -d 0 -h
111.3G .
root@CH3SNAS:/mnt/HD_a2/usenet/download#
i don't have -d on my du, tell me if that command works on your nas :dude wrote:On my NAS the command:shows exactly what I want to know.Code: Select all
du -d 0 -h
Code: Select all
du -h -s -0 . | cut -f1
i think it's better to give the total size of the download after post processing so you know how much place it takes on the HD, i will also add the size per collection.dude wrote:If it's possible to do this when the rar/par set is still there, it shows you the amount of bytes downloaded.
Code: Select all
root@CH3SNAS:~# du -h -s -0 . | cut -f1
du: invalid option -- 0
BusyBox v1.12.1 (2008-09-29 20:38:04 CEST) multi-call binary
Usage: du [-aHLdclsxhmk] [FILE]...
Summarize disk space used for each FILE and/or directory.
Disk space is printed in units of 1024 bytes.
Options:
-a Show file sizes too
-H Follow symlinks on command line
-L Follow all symlinks
-d N Limit output to directories (and files with -a) of depth < N
-c Show grand total
-l Count sizes many times if hard linked
-s Display only a total for each argument
-x Skip directories on different filesystems
-h Sizes in human readable format (e.g., 1K 243M 2G )
-m Sizes in megabytes
-k Sizes in kilobytes (default)
root@CH3SNAS:~#
Users browsing this forum: No registered users and 49 guests