Sponsored Content
Top Forums UNIX for Advanced & Expert Users Issue with IN_CLOSE_WRITE Event Of incrond Post 302886101 by Ariean on Wednesday 29th of January 2014 05:04:18 PM
Old 01-29-2014
Quote:
Originally Posted by Corona688
It is the uploader's job to move the file.

Only the uploader will know when it is complete.

If you cannot get the uploader to somehow signal completion, workarounds will be very ugly and potentially unreliable -- if you check timestamps, how can you tell the difference between a broken, stalled, or finished upload? You can't...
I just found that problem is with WINSCP client tool which user is using to drop the file and it creates a temporary file and renames it once it is done, incrontab thinks that it is temporary file open/close and sends that filename.part as input to the script. I came up with a script to strip and rename the file for further processing, thank you.
This User Gave Thanks to Ariean For This Post:
 
GALLERY-UPLOADER(1)					   gallery-uploader User Manual 				       GALLERY-UPLOADER(1)

NAME
gallery-uploader - program to upload pictures and video to Gallery SYNOPSIS
gallery-uploader [FILES] DESCRIPTION
This manual page documents briefly the gallery-uploader command. gallery-uploader is a program that allows to easily upload pictures and video to Gallery installations; Gallery (- http://gallery.menalto.com) is an advanced web photo album organizer. If FILES are given, they are the files which must be uploaded. If no argument is given instead, a small browser window will open where the user can select items to upload. HOW TO ENABLE AS NAUTILUS SCRIPT
Nautilus, GNOME's default file manager, supports scripts, which can be activated on any selected file(s) from the right-button menu; gallery-uploader plays perfectly the role of a Nautilus script. To enable it, the user can run in a terminal the command: ln -s /usr/share/nautilus-scripts/Gallery Uploader.py ~/.gnome2/nautilus-scripts/Gallery Uploader or use a program such as nautilus-scripts-manager; see: http://www.pietrobattiston.it/nautilus-scripts-manager. AUTHOR
Pietro Battiston <me@pietrobattiston.it> developed the program and wrote this manpage. COPYRIGHT
Copyright (C) 2010 Pietro Battiston Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. gallery-uploader 03/29/2011 GALLERY-UPLOADER(1)
All times are GMT -4. The time now is 06:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy