1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,32 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
- |
|
13 |
-#NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
14 |
-NODE_URL="http://192.168.1.30:8080/cgi-bin/status" |
|
15 |
- |
|
16 |
-# Changing the value overides the default data request interval hardcoded |
|
17 |
-# in the agent script. '60' is the default. Value is in seconds. |
|
18 |
-POLLING_INTERVAL="60" |
|
19 |
- |
|
20 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
21 |
- |
|
22 |
-if [ -n "$PROCESS_ID" ]; then |
|
23 |
- if [ "$1" != "-q" ]; then |
|
24 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
25 |
- fi |
|
26 |
-else |
|
27 |
- printf "starting up arednsig agent\n" |
|
28 |
- cd $APP_PATH |
|
29 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
30 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
31 |
-fi |
|
32 |
- |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,32 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+ |
|
13 |
+#NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
14 |
+NODE_URL="http://192.168.1.30:8080/cgi-bin/status" |
|
15 |
+ |
|
16 |
+# Changing the value overides the default data request interval hardcoded |
|
17 |
+# in the agent script. '60' is the default. Value is in seconds. |
|
18 |
+POLLING_INTERVAL="60" |
|
19 |
+ |
|
20 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
21 |
+ |
|
22 |
+if [ -n "$PROCESS_ID" ]; then |
|
23 |
+ if [ "$1" != "-q" ]; then |
|
24 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
25 |
+ fi |
|
26 |
+else |
|
27 |
+ printf "starting up arednsig agent\n" |
|
28 |
+ cd $APP_PATH |
|
29 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
30 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
31 |
+fi |
|
32 |
+ |
1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,28 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
-NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
- |
|
14 |
-POLLING_INTERVAL="1" |
|
15 |
- |
|
16 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
- |
|
18 |
-if [ -n "$PROCESS_ID" ]; then |
|
19 |
- if [ "$1" != "-q" ]; then |
|
20 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
- fi |
|
22 |
-else |
|
23 |
- printf "starting up arednsig agent\n" |
|
24 |
- cd $APP_PATH |
|
25 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
-fi |
|
28 |
- |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
+ |
|
14 |
+POLLING_INTERVAL="1" |
|
15 |
+ |
|
16 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
+ |
|
18 |
+if [ -n "$PROCESS_ID" ]; then |
|
19 |
+ if [ "$1" != "-q" ]; then |
|
20 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
+ fi |
|
22 |
+else |
|
23 |
+ printf "starting up arednsig agent\n" |
|
24 |
+ cd $APP_PATH |
|
25 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
+fi |
|
28 |
+ |
1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,28 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
-NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
- |
|
14 |
-POLLING_INTERVAL="1" |
|
15 |
- |
|
16 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
- |
|
18 |
-if [ -n "$PROCESS_ID" ]; then |
|
19 |
- if [ "$1" != "-q" ]; then |
|
20 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
- fi |
|
22 |
-else |
|
23 |
- printf "starting up arednsig agent\n" |
|
24 |
- cd $APP_PATH |
|
25 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
-fi |
|
28 |
- |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The aredn node url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
+ |
|
14 |
+POLLING_INTERVAL="1" |
|
15 |
+ |
|
16 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
+ |
|
18 |
+if [ -n "$PROCESS_ID" ]; then |
|
19 |
+ if [ "$1" != "-q" ]; then |
|
20 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
+ fi |
|
22 |
+else |
|
23 |
+ printf "starting up arednsig agent\n" |
|
24 |
+ cd $APP_PATH |
|
25 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
+fi |
|
28 |
+ |