LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2016, 05:43 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309

so you can check access time/creation time, it should change if the file is written.
 
Old 09-29-2016, 05:46 AM   #17
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Hmm. I have to check it !
 
Old 09-29-2016, 08:25 AM   #18
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I would think that write date/time would work, but there's also another possibility to consider - file size. You can use plain old "ls" or "find" to list the relevant files, along with their file size. Then, do the same thing a few seconds later and compare the file sizes (only utilize the lines which match).

If the file sizes match, then the transfer has been completed. If not, the file may still be in the middle of transfer, so ignore it for now.
 
Old 09-29-2016, 11:05 AM   #19
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Finally I got workaround for my problem. Single video clip is less than 10MB in size. So time of transsmision of sigle file is about 2-3 min max. Because of that I add in find command, modification time as argument. I hope it resolve my problem. All problems are because of limited functionality of Synology Linux. Se below:

Code:
find ./ -type f -mmin +10 -name "*.dav" -exec ffmpeg -y -i {} -vcodec copy -movflags +faststart {}.avi \;
 
  


Reply

Tags
ftp, linux, shell script



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Where to obtain info if /proc/bus/usb is deprecated ! intmail01 Linux - Hardware 5 11-11-2014 06:56 AM
Security Cameras and obtain info tools metallica1973 Linux - Hardware 1 06-02-2010 08:56 PM
Obtain file system info with df AQG Solaris / OpenSolaris 1 08-02-2007 08:18 PM
Is there a command to obtain uname info remotely sohos Linux - Newbie 2 01-12-2006 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration