Hello,

On 3/7/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:

$ cat ~/unlock-mozilla
#!/bin/bash
cd ~
echo \#!/bin/bash > ~/remove-mozilla-lock-file
ps -u $USER | grep mozilla-bin | sed -e 's/^\s*\([0-9]*\)[^!]*/kill -9
\1/' >> ~/remove-mozilla-lock-file
du -a | grep \./\.mozilla/.*/lock | sed -e 's/^[0-9]*\s*\.\//rm ~\//' >>
~/remove-mozilla-lock-file
chmod 700 ~/remove-mozilla-lock-file
cat ~/remove-mozilla-lock-file
~/remove-mozilla-lock-file
rm ~/remove-mozilla-lock-file
$

I made it so it would kill -9 any Mozilla programs currently running
under $USER, just in case she somehow switched to a different
workspace.  She's fairly limited in knowledge of computers but *more*
limited in patience.  She just needs it to work and have quick simple
solutions for when it doesn't.  (I think I might reduce the number of
her workspaces down to one, juuuust to be on the safe side.)

You might wqnt to take a look at:
man pkill
man pgrep


hth,

Steve


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to