Run a Task with a shell command line

1,542 views
Skip to first unread message

czed

unread,
Aug 31, 2013, 6:38:34 AM8/31/13
to tas...@googlegroups.com
Hello,

Is it possible to run a  Tasker's task by running a command line in Android's Shell ?

Example : tasker task1.xml

I don't want to run a command line from Tasker but a task from a command line.

Tank you

PS : My goal is to run some task remotely


Wietse van Buitenen

unread,
Aug 31, 2013, 6:43:50 AM8/31/13
to tas...@googlegroups.com
I think you could use
Event - Intent Received for that in Tasker
as Action set something like net.dinglish.tasker.MYTASK1
then if you send the correct Intent from the command line, tasker will catch this and you can act appropriately..
not sure about how exactly you send an intent from cli but I have seen it somewhere..
This should then also allow you to do it remotely over SSH..

czed

unread,
Aug 31, 2013, 7:57:15 AM8/31/13
to tas...@googlegroups.com
It may be a little hard to send an intent for me
But when I was looking for the event intent, I also see the event file and particulary file modified

So I create a profile that will trigger when a file is modified, and a task which read the contents of the file to find out what other task to run

To modifiy the file, I use the echo command (echo "task1" > myfile)

Thank you to set me on the right track

Matt R

unread,
Aug 31, 2013, 2:50:03 PM8/31/13
to tas...@googlegroups.com
The way you're supposed to trigger it is using:

am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -e task_name ThisIsTheNameOfYourTask

See here: http://tasker.dinglisch.net/invoketasks.html

Matt

Reply all
Reply to author
Forward
0 new messages