I want to be able to pass in arguments to a Gretl script from the command line/bash script.
Alternatively, if I open Gretl from a bash script, is there a way to then output commands from the bash script to the gretl console in the terminal window?
Turns out this is not possible. Ended up having to print to, and read from a text file in order to pass multiple arguments.
My recommendation is to never ever use Gretls command line function. It has quite a nice GUI to mess around, but if you want to use such a library as part of an application, use R.