i am trying to find the way to call a simple bash script from a macro of my calc document. i 've hard with this instruction: session.RunApplication("Shell", "/usr/local/bin/essai-macro-bavard.sh '" & #str1 & "'") i've tried a lot of combinations. i've finished by puting the script under my $PATH, in order to assimilate the script to a kind of system command. Not "/usr/local/bin/essai-macro-bavard.sh ..." nor "essai-macro-bavard.sh" works.
Would there be someone to explain me how i have to write RunApplication to allow it to call the script ?
GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")
Dim session As Variant
Dim str1 As String
session = CreateScriptService("Session")
str1 = "ici plusieurs mots"
session.RunApplication("Shell", "/usr/local/bin/essai-macro-bavard.sh '" & #str1 & "'")