Page 1 of 1

execute command problem

Posted: Sun Dec 16, 2018 10:49 pm
by rschipper
Hello,

I can't get the execute command working for the tr command in mac-os.
I tried to quote the %1 and %2 but no results.
Anybody an idea? Thanks!
Screenshot 2018-12-16 at 22.32.26.png
Screenshot 2018-12-16 at 22.32.26.png (134.16 KiB) Viewed 5244 times
The attachment Screenshot 2018-12-16 at 22.34.45.png is no longer available

Re: execute command problem

Posted: Mon Dec 17, 2018 7:50 am
by jan_suhr
Have you tried to put quotes around the variables?

Re: execute command problem

Posted: Mon Dec 17, 2018 8:48 am
by Padawan
You are using redirection in your command (the < and the > in the command). These are features of the bash shell in Terminal. The execute command tool doesn't use the bash shell, instead it uses direct OS commands. Therefore redirection (and piping) doesn't work.

To get them to work you will have to use a bash script to do the task and use the Execute Command tool to start the bash script.

More info here:
https://www.enfocus.com/en/support/know ... 000jfc9IAA

The Execute Command Friend App might also help you out to write the bash script.

Re: execute command problem

Posted: Mon Dec 17, 2018 12:33 pm
by rschipper
Thanks all!!

Problem solved with bash script.