Martin Kühne wrote:
> stdout could print an api secret "[locked]" and the calling script could act 
> upon that.
> 
> slock | {
>   read
>   if [[ "$REPLY" = "[locked]" ]]; then
>     suspend
>   else
>     yell at user or power off for added security
>   fi
> }

Heyho Martin,

thats basically the same solution. It just uses another channel to signal the
"locked" event from slock. I don't think any one is more powerful than the other
and the fork exec solution seems to be cleaner.

--Markus

Reply via email to