On 8/24/2018 2:21 PM, fidokomik wrote:
> The user should not see that for many reasons :) User do not speak English, but Raspberry yes, user do not know passwords, user know nothing about LAN.
> Generally, I want to run a system command with a defined timeout, and if not success, then run some Perl action or ask the user for basic questions in their language.
Some more non-Perl suggestions:
I did come across very hacky ways of timing out a sudo process (though I
do not understand the details), e.g.
. All are with the caveat that
even if sudo does not get stuck waiting for a password, the process to
be run still gets killed after the timeout.
There is also the passwd_timeout option in the sudoers file, if you have
control over that.