Mailing List archive

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

[vdr] Re: cdcopy command?



On Mon, 13 May 2002 10:19:58 +0200
"Florian Engelmann" <engelmann@etecs.de> wrote:

> hi,
> i want to use the vdr command menu to copy the *.avi divx movies from
> CDrom to /video/divx. Here is my /usr/bin/cdcopy :
> --------------- cdcopy ----------------------
> #! /bin/sh
> mount /cdrom
> if [ -r /cdrom/*.avi ]; then
> cp /cdrom/*.avi /video/divx/ >/dev/null
> fi
> if [ -r /cdrom/*.mpg ]; then
> cp /cdrom/*.mpg /video/divx/ >/dev/null
> fi
> if [ -r /cdrom/*.mpeg ]; then
> cp /cdrom/*.mpeg /video/divx/ >/dev/null
> fi
> umount /cdrom
> eject /dev/hdc
> ---------------------------------------------
> and here my commands.conf
> 
>  Reload : echo "restarting vdr ..."; sleep 2; killall -9 vdr
>  Reboot : echo "REBOOTING..."; reboot
>  CDCOPY : echo "copy divx CDROM -> HDD"; /usr/bin/cdcopy &
                                                           ^^^^^^
                                                           Maybe this is
                                                           the error

I think vdr forks the command and put it in the background by itself.
Try without the '&' ( is this symbol named: ampersand ?? ) and let me
know if it works.

Bye,
   Angelus. 



Home | Main Index | Thread Index