repo.or.cz
/
git-cheetah
/
kirill.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
explorer: use xmalloc instead of malloc
[git-cheetah/kirill.git]
/
nautilus
/
kill-nautilus.sh
blob
548d74068dad794d2b39ce6cd543ab068d8ad957
1
#!/bin/sh
2
3
echo
"Ok to kill nautilus? (Ctrl-C to abort)"
4
read
input
5
6
pid
=
$
(
ps ax |
grep
nautilus |
7
grep
-v
grep
|
8
grep
-v
kill-nautilus.sh |
9
awk
'{ print
$1
}'
)
10
if
[
$pid
];
then
11
kill
$pid
12
fi
13
14
echo
"and start again?"
15
read
input
16
17
nautilus
&