LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2009, 08:55 AM   #16
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37

OK so if the line in the file looks like this:

/home/user/kelly.mpg#volume:100

then

Code:
eval xine ${LINE}
will work.

The advantage of splitting the line into $LINE and $VOL actually has the benefit of not having to put \ in front of spaces for file names that have spaces in the text file. So splitting could still be an attractive option. But theoretically what I am wanting to do is almost reality now.
 
Old 06-04-2009, 08:59 AM   #17
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by druuna View Post
It is still not clear from your answer if you tried the eval command

Code:
LINE="--enqueue -S session=0,mrl=/home/user/kelly.mpg#volume:100"
eval xine $LINE
Also try ${LINE}.
Yeah I tried:

Code:
eval xine --enqueue ${LINE}
and that works with a line from the file that looks like this:

/home/user/kelly.mpg#volume:100

which is cool, and essentially allows me to get something working.


However, I have discovered that if I do go about and split the information from the line, then it will handle spaces in filenames much better. I discovered this from your "set x" idea for testing earlier.

Edit: I am happy to leave the --enqueue out of the text file lines and just specify the --enqueue option in my script. This is more efficient I think, because when the text file has one hundred entries, this will save having --enqueue in there 100 times.

Last edited by greengrocer; 06-04-2009 at 09:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripts grishaoks Linux - Newbie 4 12-05-2008 07:14 AM
I need some help with BASH scripts. BoB4ik Programming 10 12-20-2007 04:06 PM
bash scripts hoffmanyew Programming 3 08-11-2005 01:27 AM
Need Help With Bash Scripts the_woelf Linux - Software 4 06-30-2004 09:09 AM
$? in Bash scripts clinton Linux - Newbie 4 02-20-2004 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration