Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Orange Pi Zero Stop a running program with C

Featured Replies

Hi everybody,

 

My question is about stop a running program with C. I have written a c code to start program with system() function in orange pi zero. I am starting RTKLIB software, which is STR2STR and when my code starts the software with command str2str -in serial://ttyS1:115200 -out serial:ttyS2:115200, I can stop it with CTRL^C but I want to stop it from my software. When I got a TCP pocket containing a exit status word. It should stop the STR2STR software. I am not very good at linux. How can I do that?

 

Thanks

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.