More > JRiver Media Center 32 for Mac
Links: Opening External Program
MrBiff:
I can open a shell with //usr//bin//open with Parameters:
//bin//zsh
IF it has no arguments. As soon as arguments are added to Parameters, it fails:
//bin//zsh -c "echo hello"
JimH:
Try
man zsh
MrBiff:
--- Code: --- $ zsh -c "echo hello"
hello
--- End code ---
zybex:
Won't that command execute the echo and immediately exit zsh? You may see a brief window flashing and then closing immediately, or maybe not even that. Try some command that you can confirm that it did execute. Maybe zsh -i -c "echo hello world".
Also, why not run /bin/zsh directly instead of /usr/bin/open?
MrBiff:
Sorry, but none of those works.
As soon as arguments are added, nothing runs. There is no terminal app opening.
No Terminal is opened with calling //bin//bash directly. Adding -i to the Parameters does not help.
Terminal.app will be opened when //usr//bin//open is used and //bin//zsh or //bin//bash is the Parameters value. Add more args, nothing happens.
Exec'ing programs on *unixy* systems is so straightforward, there has to be something not coded correctly with the argument (Parameters) processing (which is likely being handled the Windows way).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version