Having trouble making the SHELL call work from basic macro. I have a bash file hsf.sh that runs gnuplot, to load a control file and plot a data file. It needs no other input or control. Andrew Pitonyak makes it look easy, but I cannot get the SHELL call to do anything useful.
sFileName = sLocation & "hsf.sh"
i = shell(sFileName)
print i
Exit code is 0 implying success, but nothing happens. I’ve also tried variations (with appropriate file names):
i = shell ("gnuplot",,sFileName)
i = shell("/usr/bin/gnuplot",1, sFileName,true)
i = shell ("bash", 1, sFileName,true)
Perhaps I should shell to the the terminal, but I’m not sure how to do that.
Any suggestions what I am doing wrong?