As of 6.2, the @URL tag and the Web Call action both utilize cURL under the hood. It's better to use the native implementation than an external bash script. Is there some reason you need to do the external script?
Robert From: Wayne Irvine [mailto:[email protected]] Sent: Friday, May 01, 2020 12:34 AM To: [email protected] Subject: Re: TeraScript-Talk: Echo Cheers! Makes for a much simpler workflow. Wayne On 1 May 2020, at 5:18 pm, [email protected] <mailto:[email protected]> wrote: If using MacOS bash, the Command Line external call action in TS outputs results into @@resultset as an array. A bash script file ( /usr/local/var/www/website/scripts/get_google.sh ) can be called in the external action's "command" field: #!/bin/bash curl <https://www.google.com/> "https://www.google.com/" echo is not required for output The curl output in this case can then be viewed in html with <@var resultset encoding="html">. The external action outputs (from old user guide): "A single item result is treated as a one-column row, a list of items is treated as a row of columns, and a list of lists is treated as a rowset." Check (full) path to file and permissions. On 4/30/20 11:01 PM, Wayne Irvine wrote: I’m calling a bash script which contains a curl command. How do I get the results of the curl command back to Terascript? Do I have to prefix the Bash script with echo? And do I use @@resultset in the taf? Wayne ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
