I only have a problem, I created a script with my solution, to added to the crontab... script (zmmkmov) looks like...
Code: Select all
#!/bin/sh
rm /home/user/bin/list.txt
ls -Ca --format=single-column /events/1/$(TZ=EST24EDT date +%y/%m/%d)/.*/*capture.jpg > /home/user/bin/list.txt
/usr/bin/mencoder "mf://@list.txt" -mf fps=5 -o /home/user/bin/mon1-$(TZ=EST26EDT date +%F).avi -ovc lavc -lavcopts vcodec=mpeg4
sudo mv /home/user/bin/mon1-$(TZ=EST26EDT date +%F).avi /stuffs/video
and on crontab I set to ran at 00:10 each day, but emncoder exit with error, I don't have the e-mail that shows the error, but I'll post it here later, and I can't use SUDO on a crontab??? gives me an error too
Code: Select all
SHELL=/bin/sh
HOME=/home/user
PATH=/usr/bin:/bin:/home/user/bin
LOGNAME=user
USER=user
10 00 * * * umask 002; /home/user/bin/zmmkmov
Maybe is the "mf://@list.txt" I'll try with "mf://@/home/user/bin/list.txt" and see if mencoder doesnt fail, but sudo??? why can I use sudo on a crontab??? it says I can only use sudo on a tty console...
But if I ran it manual from console, nor mencoder, nor sudo (ofcourse) gives me errors!!!