You are not logged in.
Hi,
Any help is appreciated.
I use gdm start a openbox session. And in openbox's autostart file, I start calise.
(calise is a python script that auto adjust screen backlight based on camera image).
start calise -> wait for 5 sec -> close calise.
during the 5 sec, calise will take several images from camera and adjust screen backlight according to ambient brightness -- The camera is used as light sensor.
calise
sleep 5
killall -9 caliseIf I key in the code in a shell command window, it works as expected.
During the openbox start session, calise start. But it will not get killed in 5 sec.
Anyone know how to fix this or how to find debug messagae?
Thanks.
-- Nano
Last edited by comicosmos (2013-08-06 11:40:16)
Offline
Call it from script instead.
Offline
Try something like that in openbox autostart:
calise &
(sleep 5 && killall -9 calise) &You need to execute calise in background for the autostart script to continue with the other lines.
Everything launched in autostart should be in background, or the script will wait till the command exits before continuing to the other commands.
And do you really need the SIGKILL signal? Is not the default SIGTERM signal sufficient?
Offline
Yeah. Thanks berbae.
That works.
Thanks for the explanation. I should have known this.
Last edited by comicosmos (2013-08-06 11:38:33)
Offline