SHELL command works in Terminal but not via SHELL in LC

Ludovic THEBAULT ludovic.thebault at laposte.net
Wed Jun 3 07:26:04 EDT 2020



> Le 3 juin 2020 à 13:13, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> a écrit :
> 
> Hi friends,
> 
> maybe someone has a brilliant hint for me! :-)
> 
> A customer of mine has installed ffmpeg on his mac via Terminal:
> 1. google: homebrew
> 2. terminal: brew install ffmpeg
> or whatever the command were...
> 
> Now ffmpeg is available on his Mac and something like:
> ffmpeg -i Desktop/ffmpegMac/TiffSequence/Test_%5d.tif test2.mp4
> is working as exspected.
> 
> However if he fires this in LC:
> on mouseUp
> put shell("ffmpeg -i Desktop/ffmpegMac/TiffSequence/Test_%5d.tif test3.mp4")
> end mouseUp
> 
> He gets: 
> /bin/sh: line 1: ffmpeg: command not found
> 
> But this is working in the Terminal!?
> What is going on here and how can this be fixed?
> Does some environment or PATH variable need to be set additonally?
> 


Yes, you need to set the PATH like :
if "/usr/local/bin" is not in $PATH then put "/usr/local/bin:" before $PATH

But with the path of ffmepg.




More information about the use-livecode mailing list