LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 04-02-2004, 01:41 PM   #1
DesiLILO
Member
 
Registered: Mar 2004
Location: Singapore
Distribution: Mandrake Linux 10.1 CE, Fedora Core 3 T3, Adios
Posts: 42

Rep: Reputation: 15
Automating a playlist using shell script...


Hi,

I'm fairly new to linux and shell programming...sorry if my questions are really dumb

I have a few real audio files which I wanted to run continously. So, when I checked out my Real Player (version 8), it did not seem to have a playlist option. Finally, after what I have managed to learn until now, I set out to right the following script to run the files myself....

#!/bin/bash

realplay /home/harish/ISKCON/gauri.ram
realplay /home/harish/ISKCON/dgreet.ram
....and so on until i finished all my files


Now the problem is...the second file wont play unless I close the real player window corresponding to the first file....so I ve to click the close button each time I want the next file to be played....this is very annoying

Is there any better way of writing the script so that the entire process is automated?
 
Old 04-02-2004, 02:13 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
I don't its possible with real player. But there is a playlist option under the play menu.
 
Old 04-02-2004, 02:17 PM   #3
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
you could add "killall -KILL realplay" after each file has finished playing.
 
Old 04-02-2004, 10:59 PM   #4
DesiLILO
Member
 
Registered: Mar 2004
Location: Singapore
Distribution: Mandrake Linux 10.1 CE, Fedora Core 3 T3, Adios
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
I don't its possible with real player. But there is a playlist option under the play menu.
Somehow in my real player, the playlist option has been disabled! I cannot click it. Any idea how I can get back this?
 
Old 04-02-2004, 11:03 PM   #5
DesiLILO
Member
 
Registered: Mar 2004
Location: Singapore
Distribution: Mandrake Linux 10.1 CE, Fedora Core 3 T3, Adios
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
you could add "killall -KILL realplay" after each file has finished playing.
I tried this...but again its the same problem. Unless I close my first window, the second song wont play
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating the "killing" process via a shell script fatrandy13 Linux - Software 5 09-13-2007 11:59 PM
automating lynx in a shell script yimboli Programming 15 04-04-2007 02:15 AM
Automating Bittorrent with shell scripts kyosuke Linux - General 4 07-01-2005 10:14 AM
Trouble when automating ftp with shell script hari_s_82 Linux - Newbie 2 09-23-2004 02:17 AM
automating using shell scripting LinToWinWin Linux - Newbie 1 07-23-2004 09:57 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration