Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: possible bug: VDR1.2.5 commandline interpreting



Rene Bartsch schrieb:

while playing around with the runvdr script i encountered the following (strange) behaviour:

The following call work as expected - it loads the graphlcd plugin and passes the arguments to the plugin !

# vdr -P 'graphlcd -p 0x378 -x 128 -y 64'

However, when calling this via shell variable:
# opt="-P 'graphlcd -p 0x378 -x 128 -y 64'"
# vdr $opt

vdr stops with error about illegal port number 0x378 !
So what happened ?

I guess vdr did interpret -p (SVDRP Port) instead of passing it to the plugin !
But why ? Whats the difference !? Did i do something wrong here !?

It's no bug, but messing around with quotations. I didn't got it working and use ctvdr, now, in which Peter Siering implemented a great start-script which handles the options from configuration-files.
Why "messing around" with quotations? Ich didn't see any mess.


@Klaus

I found some more strange commandline handling, please take a look to the following examples:


This works:
-----------
# opt="-P dvd '-C/dev/cdroms/cdrom0'"
# vdr $opt [more parameters...]

This doesn't work:
------------------
# opt="-P'dvd -C/dev/cdroms/cdrom0'"
# vdr $opt [more parameters...]


This works:
-----------
opt="-P vcd"
# vdr --lib=/lib/vdr $opt [more parameters...]

This doesn't work:
------------------
opt="-P vcd"
# vdr $opt --lib=/lib/vdr [more parameters...]


This also doesn't work:
-----------------------
opt="-P'vcd -v /dev/cdroms/cdrom0'"
# vdr $opt --lib=/lib/vdr [more parameters...]

(message vdr: /lib/vdr/libvdr-'vcd.so.1.2.6pre2: cannot open shared object file: No such file or directory)

If I modify the first line to

# opt="-Pvcd '-v /dev/cdroms/cdrom0'"

this will be accepted, also this version

# opt="-Pvcd \"-v /dev/cdroms/cdrom0\""


The whole thing is pretty unpleasant, because I need a dynamic, not a static command line.


regards
Alfred



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index