Page 1 of 1

Help with Linux bash script.

Posted: October 27th, 2009, 12:56 pm
by ppan76
I want to "TRY" to write a script that will run the following command.

----------------------------------------------------
/usr/bin/thumber/thumber PATHOFMOVIES
----------------------------------------------------

So for example if the movie "Star Wars" was downloaded and uncompressed in a folder "/media/complete/movies/Star Wars"

I want a script that will run

/usr/bin/thumber/thumber /media/complete/movies/Star\ Wars

What variable is passed for "/media/complete/movies/Star\ Wars"??

Thanks.
Thumber basically is a script that takes 10 thumbnails from a compatible movie.

Re: Help with Linux bash script.

Posted: October 27th, 2009, 1:07 pm
by ppan76
i think I found it.

/usr/bin/thumber/thumber "$1"

Re: Help with Linux bash script.

Posted: October 27th, 2009, 6:54 pm
by ppan76
ppan76 wrote: i think I found it.

/usr/bin/thumber/thumber "$1"

nevermind the script worked. I had to change the permissions on the script. duh..