Thanks Wayne,
I'll see if I can get this addressed. Robert From: Wayne Irvine [mailto:wa...@byteserve.com.au] Sent: Friday, May 01, 2020 6:58 AM To: TeraScript-Talk@terascript.com Subject: Re: TeraScript-Talk: Echo I have to use the external script as Web Call is giving an SSL Handshake error: Error An error occurred while processing your request: File: tdtest.taf Position: WebCall2 Class: Internal Main Error Number: -1001 Unable to send data when processing URL request. wrong when connecting with SSL SSL peer handshake failed, the server most likely requires a client certificate to connect File: tdtest.taf Position: WebCall2 Class: Internal Main Error Number: -1001 Unable to send data when processing URL request. This just started happening on previously working code in November last year. I guess some certificate has expired or something. Wayne On 1 May 2020, at 11:52 pm, Robert Shubert <rshub...@tronics.com <mailto:rshub...@tronics.com> > wrote: 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:wa...@byteserve.com.au> mailto:wa...@byteserve.com.au] Sent: Friday, May 01, 2020 12:34 AM To: <mailto:TeraScript-Talk@terascript.com> TeraScript-Talk@terascript.com Subject: Re: TeraScript-Talk: Echo Cheers! Makes for a much simpler workflow. Wayne On 1 May 2020, at 5:18 pm, <mailto:ubs...@uw.edu> ubs...@uw.edu 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 <mailto:lists...@terascript.com> lists...@terascript.com with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to <mailto:lists...@terascript.com> lists...@terascript.com with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to <mailto:lists...@terascript.com> lists...@terascript.com with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to <mailto:lists...@terascript.com> lists...@terascript.com with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.