Update main.c start c&c here

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent b09d964641
commit 9270698d36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 stop rpitx", "r");
FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r"); FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_stop); 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"); // FILE * file_deletes = popen("sudo rm /home/pi/CubeSatSim/ready /home/pi/CubeSatSim/cwready > /dev/null", "r");
// pclose(file_deletes); // pclose(file_deletes);

Loading…
Cancel
Save

Powered by TurnKey Linux.