Re: Using Javascript to execute curl command

621 views
Skip to first unread message

Pent

unread,
May 14, 2013, 2:21:37 AM5/14/13
to Tasker
When I pick shell with the JS function selector, it shows args are
string, bool, int.

Pent

Mac Soileau

unread,
May 14, 2013, 2:23:20 PM5/14/13
to tas...@googlegroups.com
Using the following, I still get "undefined":

var output = shell('/system/bin/curl --insecure -G https://<my server>/rest/status',false,10);
flash(output);

I've tried just about every combination of values that I can come up with. I've using single quotes and double quotes for the string, 0/1/on/off/true/false for the boolean and 0/10/20 for the integer. If I copy the actual shell command into the terminal on the phone, it works with no problems.
Reply all
Reply to author
Forward
0 new messages