any tricks to make SHELL non blocking?

Mike Bonner bonnmike at gmail.com
Tue Feb 6 00:46:37 EST 2018


Don't recall if anyone has already mentioned using open process  but..

But.. If you build your known working string ( ./ffmpeg -i '/Volumes/Audio
CD/1 Audio Track.aiff' '/Volumes/20160518 KJAZ
ARCHIVE MASTER/JULY - JAN 2017/20040315-2-JD0211b.wav') and put it in a
variable tCommand and then do..
open process tCommand for neither
does it do what you want?

On Mon, Feb 5, 2018 at 10:04 PM, Stephen Barncard via use-livecode <
use-livecode at lists.runrev.com> wrote:

> 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
> >
> _______________________________________________
> 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