The other problem of course may simply be that you are launching a GUI from
a command line, remember the commandline has to wait for the GUI to close
until it can move on to the next file in the loop (possibly why you have to
CTRL+C each time to move to the next one. Backgrounding (adding a $ to the
end of the command)  may not work either as you may end up with all the
movies playing simultaneously in several instances of vlc player.

The way I use to put files in an array like that is as I posted before:

*folder=/home/stu/test
files=`ls $folder`*

but as always in linux there is more than one way to skin a cat, if your
way is already working, leave it as it is, been thinking it may just be the
command line waiting for the GUI to close before it can play the next file,
not sure how you'd get around that.


On 1 January 2012 19:33, Richard Forth <richard.fo...@gmail.com> wrote:

> Hi Stuart,
>
> Try this
>
> *folder=/home/stu/test
> files=`ls $folder`*
> for f in $files
> do
> if [ -f $f ] # check to see if $f is a file
> then
> echo $f is a file!
> echo "Processing $f file..."
> vlc $f
> else
> echo $f is not a file!
> continue # do nothing with the file; starts the next iteration..
> fi
> done
>
> On 1 January 2012 15:49, Stuart Bird <e_tect...@yahoo.co.uk> wrote:
>
>> FILES=/home/stu/test/*
>
>
>
_______________________________________________
Peterboro mailing list
Peterboro@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to