[nmglug] ftp video file truncate

Jason Schaefer js at jasonschaefer.com
Tue Jan 12 10:46:30 PST 2010


Anthony

On Mon, Jan 11, 2010 at 4:48 AM, a <a at kaluta.us> wrote:
>
> original post:
> The puzzle;
> A netcam,sensor controlled,is cumulatively ftp auto uploading files to
> an online "storage" site.

I like using find to cleanup files.
find /home/ftp/camera -mtime +7 -exec rm -fr "{}" ";"
In this case it will find files modified 7 days ago and delete them

>
> new post:
> Any thoughts on the following,I believe the camera is generating a
> folder in the ftp site directory "camera",how would I treat the text
> below beginning with "tail" within that "camera" directory?.
>
> tail -2000 logfile.txt > logfile2.txt; rm -f logfile.txt; mv
> logfile2.txt logfile.

I have no idea what your trying to do here. Perhaps you could explain
what it is your trying to achieve?

>
> source:
> http://stackoverflow.com/questions/1759448/why-doesnt-tail-work-to-truncate-log-files
>



More information about the nmglug mailing list