Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4872

Python • Re: Difficulties with Python and PIR Sensor

$
0
0
Did you try to avoid the intermediate shell scripts and instead invoke the target programs 'feh' and 'impressive ' directly with the popen-command?

Reason for this proposal: if you use a shell script to start a process then
- shell is started (this is the process which is returned from popen)
- the shell starts a process, e.g. feh as a child process.
If you stop the shell, the child could "resist" to exit.

Statistics: Posted by ghp — Thu Jan 02, 2025 4:54 am



Viewing all articles
Browse latest Browse all 4872

Trending Articles