Skip to content
Snippets Groups Projects
Commit 3edd6869 authored by Elisa Giglio's avatar Elisa Giglio
Browse files

rimesso file

parent dca68616
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ ! -d "/home/debian/hat_home" ]; then mkdir /home/debian/hat_home; fi
#!/bin/bash
status="OFF"
running=$(/usr/bin/pgrep code.Antifurto)
if [ -f "/home/debian/CONFIG/antifurtoMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/antifurtoMicroservizio/STATUS); fi
if [ ! -z "$running" ]; then status="OFF"; fi
if [ $status == "ON" ]; then (java -classpath /home/debian/CONFIG/antifurtoMicroservizio:/home/debian/CONFIG/antifurtoMicroservizio/org.eclipse.paho.client.mqttv3_1.2.5.jar:/home/debian/CONFIG/antifurtoMicroservizio/org.json-1.0.0.v201011060100.jar:/home/debian/CONFIG/antifurtoMicroservizio/bcprov-jdk13-167.jar:/home/debian/CONFIG/antifurtoMicroservizio/bcpkix-jdk13-167.jar /home/debian/CONFIG/antifurtoMicroservizio/bin/code.Antifurto &>/dev/null&); fi
#!/bin/bash
status="NONE"
if [ -f "/home/debian/CONFIG/antifurtoMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/antifurtoMicroservizio/STATUS); fi
if [ $status == "OFF" ]; then /home/debian/bin/stopag Antifurto; fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment