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/";


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] 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.

Reply via email to