Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

My little script for when SL freezes

Ylikone Obscure
Amatuer Troll
Join date: 24 Jan 2007
Posts: 335
03-27-2007 17:15
I run this little bash script whenever I have a problem with SL (like a freeze up)... I then run SL again and it is usually good. I'm sure most of you are Linux experts and know this, I'm just posting it for those that don't do bash. Copy and paste the following into a text file, then do a "chmod a+x" on it and associate a desktop icon for it. It basically kills any stuck running tasks of SL and clears your cache files.

(the code is supposed to be here, but for some reason if I put in place the forums give me 404 errors when I try to Save Changes!)
Ylikone Obscure
Amatuer Troll
Join date: 24 Jan 2007
Posts: 335
03-27-2007 17:34
#!bin/bash
killall -9 secondlife
killall -9 do-not-directly-run-secondlife-bin
find ~/.secondlife/cache -type f -exec rm {} \;
Ylikone Obscure
Amatuer Troll
Join date: 24 Jan 2007
Posts: 335
03-27-2007 17:37
Ok, for some crazy reason, the forums give 404 errors if you type slash bin (notice the "hatch exclamation slash bin slash bash" above is missing the first slash)

Anyway, fix the first line if you want that script to work. Perhaps Tofu can fix the posting for me.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
03-28-2007 02:19
You're right, that's an interesting forum bug... I'm not sure anything will happen about it though (the forums are increasingly unfashionable!).

Wrapping the pasted script in
CODE
 tags will probably help.
Yasmin Nemeth
Registered User
Join date: 2 Mar 2007
Posts: 60
little script
03-28-2007 14:23
no need to spawn the bash, really
just:
ps ax |grep -i secondlife |grep -v grep |awk '{print $1}' |xargs kill -9

and if you want, follow with
find ~/.secondlife/cache -type f -exec rm {} \;


:)