That produces an error: “Process ‘command ‘cmd’’ finished with non-zero exit value 1”. I attempted a couple of variations, “< create_log_table.sql” and “mydb < create_log_table.sql” as arguments but none of those work.
Is there a recommended way to pipe an input file to an exec’ed process that I’m missing?
Sorry, I don’t know how I missed your reply, Luke. Yes, that would work much better. I was thinking I needed to invoke a separate interpreter, but upon reflection I realized I don’t have to.