PDA

View Full Version : how to use find and execute results to background



denarced
January 13th, 2010, 06:55 PM
So I'd like to do something like this:

find . -type f -name 'something*' -exec vlc '{}' & \;
but the &-part don't work so well

The basic idea is to launch the files to separate vlc-windows.
The files are action shot from different angles.

Much thanks to any and all help

denarced
January 13th, 2010, 07:02 PM
this should be in the programming section
my bad

denarced
January 13th, 2010, 07:03 PM
So I'd like to do something like this:
Code:


find . -type f -name 'something*' -exec vlc '{}' & \;

but the &-part don't work so well

The basic idea is to launch the files to separate vlc-windows.
The files are action shot from different angles.

Much thanks to any and all help

Elfy
January 13th, 2010, 07:27 PM
Please use the report button in fture and ask for it to be moved instead of opening a duplicate.

Hellkeepa
January 13th, 2010, 09:05 PM
HELLo!

Escape the ampersand just like you've escaped the semicolon.

Happy codin'!

denarced
January 14th, 2010, 01:55 AM
HELLo!

Escape the ampersand just like you've escaped the semicolon.

Happy codin'!

this does not work(first thing I tried)
In this way it'll open one file and another file called '&'