From: Kenneth L. <ke...@la...> - 2006-04-17 09:10:48
|
Rob MacGregor wrote: > On 4/17/06, Punit Neb <pn...@mt...> wrote: > >> what i want to do is, let motion perform as usual ie record when it senses >> movement. when a file say /tmp/foo.txt is created by another process, stop >> the current recording, rename the current recording and start a new >> recording. the renaming of recording i can manage by running a script >> specified in on_movie_end in motion.conf. my problem is how to checking >> if /tmp/foo.txt exists. if it exists ending the current recording. >> > > Ignore the technical details - what are you trying to achieve and why? > > Rob is write. Just what I also originally wanted to know. The whole concept of letting Motion react on the existance of a text file is probably not the best way to solve your problem. We need to get back to - what program is creating the text file? I am sure we can find a much simpler and smarter way to do what you want. Kenneth |