2

Run shell timeout not work

I saw the Old Discussions at forum, it has no meaning...

https://groups.google.com/forum/m/#!topic/tasker/DeEHhw2emao

Today I runned a shell script about "Getevent" -same as above discussions- with 5 sec of timeout. But it doesn't timeout.

And it worked on my device earlier, but after several updates, some months, today, it doesn't.

+

I performed above as task, give a stop action to that task, it doesn't stop itself.

==============================

So, the result is... you had an mistake with root permission.

A shell script action with root permission can't be controlled by tasker, th owner app.

It just can be excuted by, but after excuting, that action, shell with root CAN NOT BE CONTROLLED by tasker. And a task has above shell action CAN NOT BE CONTROLLED by tasker TOO.

1 reply

Thanks for the report. Can you please let me know what script you're trying to run that doesn't time out?

Thanks in advance.

L

As I said, same as above Link.

L

And I think that.... that script action worked fine (timeout) on my device, several months ago. But after that months, some updates, tasker's root permission controlling at shell script action has gone wrong AGAIN.

Sorry, Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance

L

Input - Get Input Event (605)
Abort Existing Task
A1: Variable Set [ Name:%sec To:%par1 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] If [ %par1 Set ]
A2: Variable Set [ Name:%sec To:5 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ] If [ %par1 !Set ]
A3: Run Shell [ Command:# All Device
getevent -c 1

# Touch
# getevent -c 1 dev/input/event1

# Key
# getevent -c 1 dev/input/event0 Timeout (Seconds):%sec Use Root:On Store Output In:%event Store Errors In: Store Result In: Continue Task After Error:On ]
A4: If [ %event Set ]
A5: Return [ Value:yes Stop:Off ]
A6: Else
<Force-Stop Getevent Process>
A7: Run Shell [ Command:ps | awk 'NR==1{for(i=1;i<=NF;i++){if($i~"^[Pp][Ii][Dd]$"){break}}};/\sgetevent$/{print $i}' | while read line; do kill $line; done Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
A8: Return [ Value:no Stop:Off ]
A9: End If
A10: If [ %par1 !Set ]
A11: Vibrate [ Time:60 ]
A12: Popup [ Title: Text:%event Background Image: Layout:Popup (Big) Timeout (Seconds):600 Show Over Keyguard:On ]
A13: End If