any tricks to make SHELL non blocking?

Stephen Barncard stephen at barncard.com
Tue Feb 6 00:04:38 EST 2018


seriously, back on topic...
on mac -- El Capitan
calling shell
I have this open sourced app

ffmpeg

and I need to copy the first file from a CD, convert it to a wav file, name
it, and save it to a file on a hard drive.
(the executable is located in the same folder as the stack, hence the ./ )
so my generated command used with the shell command is:

*./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ
ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav'*

this works fine, LC just doesn't return control until it's fully imported
the file off of the CD.
I just want to keep a simple counter going during the file import.

I've tried these variations below without success. It's true, I get screwed
by syntax and quotes all the time, but I still have not found why these
won't work. Sometimes these will copy the file, but does not release until
done.

./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ
ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav &"

./ffmpeg -i "/Volumes/Audio CD/1 Audio Track.aif" "/Volumes/20160518 KJAZ
ARCHIVE MASTER/JULY - JAN 2017/20180204 TEST1.wav" &

(./ffmpeg -i '/Volumes/Audio CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ
ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav' &)

thanks for any suggestions... you guys rock.

sqb







--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Mon, Feb 5, 2018 at 2:43 PM, Dr. Hawkins via use-livecode <
use-livecode at lists.runrev.com> wrote:

> On Mon, Feb 5, 2018 at 2:18 PM, Mark Wieder via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > On 02/05/2018 12:02 PM, Dr. Hawkins via use-livecode wrote:
> >
> > disintegrated (and so did that plumber).
> >>
> >
> > !!!
> >
> >
> *shrug*
>
> So I'm a vengeful homeowner.
>
> :)
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list