Donations
|
If you wish to make a donation you can by clicking the image below.
|
|
|
|
13th May, 2013, 05:16 PM
|
Forum Newcomer
|
|
Join Date: Jul 2012
Posts: 10
|
|
UT99 Linux Compress Script
Hi all,
I have translated the code from compress2uz, an utility to compress an UT Server on Windows, for Linux.
But I have a little problem, while it begins to compress, a system signal interrupt the process.
This is the code from my Script :
Code:
echo "Compressor-script for UT Linux Server"
echo "Step 1 : Creating Compressed Folder"
mkdir Compressed
echo "Step 2 : Copying Files"
echo "Copying Maps Folder"
cp ./Maps/*.unr ./Compressed
echo "Copying Music Folder"
cp ./Music/*.umx ./Compressed
echo "Copying Sounds Folder"
cp ./Sounds/*.uax ./Compressed
echo "Copying Textures Folder"
cp ./Textures/*.utx ./Compressed
echo "Copying System Folder"
cp ./System/*.u ./Compressed
echo "Copying Files Finished"
echo
echo "Step 3 : Compressing"
cd System
./ucc-bin compress ./Compressed/*
echo "Step 4 : Cleaning ..."
cd ..
rm ./Compressed/*.unr
rm ./Compressed/*.utx
rm ./Compressed/*.uax
rm ./Compressed/*.umx
rm ./Compressed/*.u
echo "Cleaning Finished !"
echo "Step 5 : Moving Files to Redirect Folder"
mv ./Compressed/*.uz /var/www/uz
rmdir Compressed
echo "Compress Finished"
Result :
Code:
Signal: SIGSEGV [segmentation fault]
Aborting.
Any ideas ?
|
13th May, 2013, 10:08 PM
|
Holy Shit!!
|
|
Join Date: Mar 2007
Posts: 1,726
|
|
On Linux there's not much you can do about seg fault. Rather annoying. Why not just run compress a lot or ucc via wine ?
|
13th May, 2013, 10:43 PM
|
Forum Newcomer
|
|
Join Date: Jul 2012
Posts: 10
|
|
Because i haven't GUI on a Debian Dedicated Server.
I have only Text Mode, I use PuTTY to set it up
|
14th May, 2013, 06:38 AM
|
Holy Shit!!
|
|
Join Date: Mar 2007
Posts: 1,726
|
|
Ucc doesn't require gui and it might be more simple to do it that way. In fact I can't remember if the Linux server install has it already....I might have something from when I hosted Linux I'll cheat this evening
|
14th May, 2013, 10:30 AM
|
|
Administrator
|
|
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
|
|
for i in `ls -1 ./Compressed/*`; do ./ucc-bin compress $i; done
|
14th May, 2013, 03:15 PM
|
Forum Newcomer
|
|
Join Date: Jul 2012
Posts: 10
|
|
Quote:
Originally Posted by AnthraX
for i in `ls -1 ./Compressed/*`; do ./ucc-bin compress $i; done
|
I have tried and it does that
Code:
Compressing /home/utserver/ut-server/Compressed/2k4Combos.u (777090 bytes)
Could not create /home/utserver/ut-server/Compressed/2k4Combos.u.uz
History: UCompressCommandlet::Main
Exiting due to error
Compressed Folder has '766' rights.
|
14th May, 2013, 03:37 PM
|
|
Administrator
|
|
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
|
|
perhaps you should chmod it to 777 then
|
14th May, 2013, 06:11 PM
|
Forum Newcomer
|
|
Join Date: Jul 2012
Posts: 10
|
|
Same error with 777
|
15th May, 2013, 08:18 AM
|
|
Holy Shit!!
|
|
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
|
|
isn't there a script somewhere for linux written by rork perhaps , that compresses and uploads to redirect like RSC for windows?
@Zasz there is also a nifty little program from memory called WinSCP which does other useful things from Windows to linux servers , iirc from when
I used to run Linux servers.
|
15th May, 2013, 04:30 PM
|
Holy Shit!!
|
|
Join Date: Mar 2007
Posts: 1,726
|
|
Check the permissions for ucc
|
21st May, 2013, 03:33 PM
|
Holy Shit!!
|
|
Join Date: Sep 2004
Posts: 866
|
|
Also please run:
ls -ld /home/utserver/ut-server/Compressed/
And paste here the result
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.
-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2
Old skool sniping. Just you, your weapon, and gravity.
|
21st May, 2013, 03:51 PM
|
Holy Shit!!
|
|
Join Date: Sep 2004
Posts: 866
|
|
Right. ucc-bin refuses to compress for me for files not in the same folder.
Edit*: I'll think of something.. I haven't yet made a compress script but I will...
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.
-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2
Old skool sniping. Just you, your weapon, and gravity.
Last edited by ~V~ : 21st May, 2013 at 04:45 PM.
|
21st May, 2013, 04:05 PM
|
Holy Shit!!
|
|
Join Date: Sep 2004
Posts: 866
|
|
By the way, your original script contains an error:
./ucc-bin compress ./Compressed/*
should be
./ucc-bin compress ../Compressed/*
Note the two .
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.
-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2
Old skool sniping. Just you, your weapon, and gravity.
|
21st May, 2013, 06:15 PM
|
Holy Shit!!
|
|
Join Date: Sep 2004
Posts: 866
|
|
Try this. There are a few vars to set at the start. But I set those as your posts suggest they ought to be.
http://www.unrealize.co.uk/files/ut99-compress-all
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.
-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2
Old skool sniping. Just you, your weapon, and gravity.
|
21st May, 2013, 11:06 PM
|
Forum Newcomer
|
|
Join Date: Jul 2012
Posts: 10
|
|
Thanks to you, it works perfectly !
|
22nd May, 2013, 04:51 PM
|
Holy Shit!!
|
|
Join Date: Sep 2004
Posts: 866
|
|
Just found a small bug and uploaded again
and no problem
__________________
http://www.unrealize.co.uk for XConsole, ServerLog, StealthAdmin and other Unreal Tournament mods.
-= F R A G G A L O N I A... R E S U R R E C T I O N! O L D... S K O O L... S N I P E R =- unreal://82.40.94.2
Old skool sniping. Just you, your weapon, and gravity.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|