Page 1 of 1

Shell command ends with "Function aborted" error

Posted: 2014-08-15, 13:29 UTC
by drfie
Hi,
I tried to use a shell command to create md5 hashes for files like here http://forum.xda-developers.com/showthread.php?t=1704493, but for large files, I only get "Function aborted!" error. It looks like there is a timeout for a shell command. If this is the case, can I make it longer?

Posted: 2014-08-18, 12:41 UTC
by ghisler(Author)
The function is currently limited to 10 seconds. This is necessary because the command may be waiting for user input, and then it would hang forever. Maybe you have a better idea how to solve it?

Posted: 2014-08-24, 18:31 UTC
by drfie
I can see some possible solutions with varying difficulty:
1. The command would open a read only console, that would show the stderr and stdout and the user could use it to enter something to stdin.
2. The command would open a simple dialog with cancel button, that would kill the command.
3. The command properties would be extended with timeout settings.

Specifically stdin could be redirected from /dev/null, but there are many more possibilities where the command could hang.

Posted: 2014-08-26, 15:06 UTC
by ghisler(Author)
Please try beta 4, it uses a combination of 1 and 2: It shows a dialog box after 2 seconds which shows the last 10 lines returned by the shell command, plus a button to abort.

Posted: 2014-08-26, 17:14 UTC
by drfie
Works great, thanks!