Last change
on this file since 13408 was 8537, checked in by Daniela Dorner, 17 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # ========================================================================
|
---|
4 | #
|
---|
5 | # *
|
---|
6 | # * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
7 | # * Software. It is distributed to you in the hope that it can be a useful
|
---|
8 | # * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
9 | # * It is distributed WITHOUT ANY WARRANTY.
|
---|
10 | # *
|
---|
11 | # * Permission to use, copy, modify and distribute this software and its
|
---|
12 | # * documentation for any purpose is hereby granted without fee,
|
---|
13 | # * provided that the above copyright notice appear in all copies and
|
---|
14 | # * that both that copyright notice and this permission notice appear
|
---|
15 | # * in supporting documentation. It is provided "as is" without express
|
---|
16 | # * or implied warranty.
|
---|
17 | # *
|
---|
18 | #
|
---|
19 | #
|
---|
20 | # Author(s): Daniela Dorner 05/2007 <mailto:dorner@astro.uni-wuerzburg.de>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2007
|
---|
23 | #
|
---|
24 | #
|
---|
25 | # ========================================================================
|
---|
26 | #
|
---|
27 | # This script checks, if another script - given by command line option -
|
---|
28 | # is running.
|
---|
29 | #
|
---|
30 |
|
---|
31 | source `dirname $0`/sourcefile
|
---|
32 | #printprocesslog "INFO starting $0"
|
---|
33 |
|
---|
34 | if ! [ "$2" = "" ]
|
---|
35 | then
|
---|
36 | printprocesslog "WARN two many command line options given in $@ -> exit"
|
---|
37 | finish >/dev/null
|
---|
38 | fi
|
---|
39 |
|
---|
40 | path=`dirname $0`
|
---|
41 | script="/bin/sh "$path/$1
|
---|
42 | if ! ps -o "%a" -C '$1' | grep -x "$script" >/dev/null
|
---|
43 | then
|
---|
44 | printprocesslog "INFO starting $script"
|
---|
45 | $script &
|
---|
46 | fi
|
---|
47 |
|
---|
48 | #printprocesslog "INFO finished $0"
|
---|
49 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.