Shell command ends with "Function aborted" error

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
drfie
Junior Member
Junior Member
Posts: 13
Joined: 2007-01-19, 21:18 UTC

Shell command ends with "Function aborted" error

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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?
Author of Total Commander
https://www.ghisler.com
drfie
Junior Member
Junior Member
Posts: 13
Joined: 2007-01-19, 21:18 UTC

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
drfie
Junior Member
Junior Member
Posts: 13
Joined: 2007-01-19, 21:18 UTC

Post by *drfie »

Works great, thanks!
Post Reply