Re: [SLUG] wanted: hacker for small SFD script

From: Sick Twist (thesicktwist@hotmail.com)
Date: Wed Sep 13 2006 - 12:53:45 EDT


>From: Eben King <eben01@verizon.net>
>Reply-To: slug@nks.net
>To: slug@nks.net
>Subject: Re: [SLUG] wanted: hacker for small SFD script
>Date: Wed, 13 Sep 2006 11:28:01 -0400 (EDT)
>
>On Wed, 13 Sep 2006, Sick Twist wrote:
>
>>>From: Eben King <eben01@verizon.net>
>>>Reply-To: slug@nks.net
>>>To: slug@nks.net
>>>Subject: Re: [SLUG] wanted: hacker for small SFD script
>>>Date: Wed, 13 Sep 2006 08:31:34 -0400 (EDT)
>>>The playing part is easy. In crontab:
>>>
>>>#mn hr dm mo dw
>>>0,30 * 16 9 * mplayer -fs $MOVIE
>>
>>Won't that run multiple instances of mplayer? Is there a way to tell
>>mplayer to use only one instance or would we have to add killall mplayer?
>
>It would, but you said the movie is only ~25 minutes long. I'm implicitely
>assuming the former one exits before the current one starts. Of course, if
>someone pauses it, that assumption breaks.
>
>I also didn't come up with a way to kill xdaliclock before the next round
>starts. Maybe prepend that cron command with "killall mplayer ; killall
>xdaliclock ;" just to be sure. Heck, you can even get highfalutin' and put
>it into a script and call that script from cron.

No one will pause the video. This is going to be a box that just starts the
video every 30 minutes. It needs to be completely automated so we don't have
to babysit it. I checked out the xine man page and xine has an option to
automatically exit when the movie is finished. I'm not sure if mplayer has
similiar capability. The xine syntax is something like "xine --no-splash
-pfq filename.ogg".

Hmm, but if xdaliclock is launched from crontab every 30 minutes will there
be only one instance or will the others need to be explicitly killed?

Jonathon

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:08:56 EDT