Ralph Shumaker wrote:
Steve Bibayoff wrote:
You might wqnt to take a look at:
man pkill
man pgrep
(In the version I posted, (after a cat to the terminal (if run from
one)) it ends by erasing that script file, but I could easily #remark
that out. And pgrep/pkill won't help me with a leftover lock file, so
I still have to create a script to do that..., unless there is another
way. (And knowing *nix, there probably is. (Anyone?)))
Anyone know of a way to take this:
du -a | grep \./\.mozilla/.*/lock | sed -e 's/^[0-9]*\s*\.\//rm ~\//'
>> ~/remove-mozilla-lock-file
(whose output would be something like "rm
~/.mozilla/default/763qpx3h.slt/lock",)
and turn it into a command that gets executed without having to put it
into a script and executing the script? Not having to create and
execute a secondary script would reduce the first script file to 4 lines.
So far, this is the closest I can get it:
$ cat ~/unlock-mozilla
#!/bin/bash
cd ~
echo \#!/bin/bash > ~/script2
pkill -u $USER mozilla-bin
du -a | grep \./\.mozilla/.*/lock | sed -e 's/^[0-9]*\s*\.\//rm ~\//'
>> ~/script2
chmod 700 ~/script2
~/script2
rm ~/script2
$
TIA
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list