LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-11-2004, 07:09 PM   #1
rolandjdc
LQ Newbie
 
Registered: Jun 2004
Location: Washington DC
Distribution: Kubuntu 7.04
Posts: 22

Rep: Reputation: 15
Scripting audio_cd.script and video_dvd.script


I'm running Mandrake 10 Community, and I've got a couple questions:

1. My audio_cd.script file looks like this:

*************************
/usr/share/dynamic/functions.script

if under_gnome; then
launch gnome-cd --unique --play --device "$DEV"
fi

launch grip
launch gnome-cd --unique --play --device "$DEV"

echo "No application to play an audio CD"

# audio_cd.script ends here
***************************

Want I want it do to, is if grip is launched, and I insert another cd, is to use the same instance of grip that's up, and not start another. How do I do this?

2. My video_dvd.script file looks like this:

**************************
. /usr/share/dynamic/functions.script

launch xine --auto-play --auto-scan=dvdnavigator:
launch vlc dvd:"$DEV"

echo "No application to play a video DVD"

# video_dvd.script ends here

***************************

I want xine to automatically play a DVD, but it won't; but when I hit the 'DVD' button, of course it does.
And, of course, if I switch DVDs, it starts another instance of xine, which I do not want it to do.

Thanks in advance!
 
Old 09-13-2004, 05:12 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Shouldn't it be "dvd" instead of "dvdnavigator:" ?
Besides, for this to work, supermount has to be disabled.

Yves.
 
Old 09-13-2004, 08:23 AM   #3
rolandjdc
LQ Newbie
 
Registered: Jun 2004
Location: Washington DC
Distribution: Kubuntu 7.04
Posts: 22

Original Poster
Rep: Reputation: 15
Hi Yves,

I had tried "dvd", and a couple of other things, but none of them worked. Mmmmm, I didn't know automount had to be disabled.

Thanks!

Last edited by rolandjdc; 09-13-2004 at 08:26 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
Editing video_dvd.script webwolf70 Linux - Software 1 08-15-2004 04:39 PM
Scripting : Dual line output into next script as variables facets Programming 6 06-10-2004 02:28 PM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM
scripting the unix command script lmcthbe Linux - General 7 05-28-2003 02:49 PM
scripting help: boot script, loopback password, timeout undecipherable Programming 3 12-18-2002 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:43 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