Hello,
i have a simple bash script (on Mac)
#!/bin/bash
ssh $1@$2
saved as myscript.command
if i use this in terminal: /Users/mw/myscript.command admin 10.0.0.68
it works
now i want to use xojo to open that script in terminal and pass the two arguments to that script.
but this doesn’t work:
dim s as shell
dim f as FolderItem=GetFolderItem("/Users/mw/myscript.command")
s.Execute f.ShellPath +" admin 192.168.3.40"
Note: “ssh” is just an example, i just wanted to know how this could work to open the terminal app, pass args and execute a script.
or Simple: how do i execute shell commands to run in terminal.app?
Thanks Marco