On Thu, 21 Jan 2010, Philipp Reddigau wrote:
> Hi,
> we are using a automatic *.bz2 for our content servers (fastdownload) on
> nix/lenny.
> It works fine with bzip2 --compress --keep --force --best "$file"
> But we have one Problem..we have many files to compress and one bzip2 is not
> enough.
> So we have tried pbzip2 after compress join on server "Could not CRC
> blabla".
> So the game cannot decompress the file..
> I there a way to get it clean with any other compress program?
> (multithreaded)
> Anyone knows witch exact format is required, that the games can decompress
> it?
> I cannot find any information about the decompression.
maybe do a script that does it for you instead...
This script will keep you at max 10 instances of bzip:
-- snip--
#!/usr/local/bin/bash
max=10
for file in $*
do
bzip2 --compress --keep --force --best "$file" &
while [ `ps aux | grep bzip | awk 'END { print NR }'` -ge $max ]
do
sleep 1
done
done
-- snap --
This is just an example. There are probably ways to tune it and make it
better.
/Bjorn
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux