From 9270698d36c0807544f841d0383a098bebc3cb04 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 16:55:41 -0400 Subject: [PATCH] Update main.c start c&c here --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 1705a9bd..b835aac0 100644 --- a/main.c +++ b/main.c @@ -101,6 +101,9 @@ int main(int argc, char * argv[]) { // FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r"); pclose(rpitx_stop); + + FILE * cc_start = popen("python3 /home/pi/CubeSatSim/command &", "r"); + pclose(cc_stop); // FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r"); // pclose(file_deletes);