execute command problem

Post Reply
rschipper
Newbie
Posts: 12
Joined: Tue Jul 19, 2016 7:40 pm

execute command problem

Post 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 5198 times
The attachment Screenshot 2018-12-16 at 22.34.45.png is no longer available
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: execute command problem

Post by jan_suhr »

Have you tried to put quotes around the variables?
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: execute command problem

Post 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.
rschipper
Newbie
Posts: 12
Joined: Tue Jul 19, 2016 7:40 pm

Re: execute command problem

Post by rschipper »

Thanks all!!

Problem solved with bash script.
Post Reply