Sign up ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

i am using 2 python programs with rc.local for my raspberry, first program is my main program and the other is the second program. The second program is shutdown the raspberry, but when i do the second program my first program is still running and will stopped until raspberry truly shutdown. I want to make the second program kill the first program before raspberry truly shutdown, how can i do it?

share

migration rejected from electronics.stackexchange.com Jun 22 at 3:55

This question came from our site for electronics and electrical engineering professionals, students, and enthusiasts. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Jacobm001, joan, hildred, mpromonet, user2813274 Jun 22 at 3:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Jacobm001, joan, hildred, mpromonet, user2813274
If this question can be reworded to fit the rules in the help center, please edit the question.

3  
This question appeared a bit unclear when I first read it, but it seems like more of a general Python / Linux question rather than anything specific to EE or the Pi in particular. This Stack Overflow question looks close to what you want: stackoverflow.com/questions/17856928/… – PeterJ Jun 16 at 14:40
4  
Nothing to do with electronic design. Question should be closed. – Leon Heller Jun 16 at 14:41
    
What you're asking about is way off topic for this site. Why do you need a second program to shut down the first? I highly recommend this book on Linux systems programming: amazon.com/Linux-Programming-Interface-System-Handbook/dp/… – Jacobm001 Jun 16 at 16:58
    
The Raspberry Pi is irrelevant to the question. – joan Jun 16 at 19:22