site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Aug 24, 2007, at 7:47 AM, Dave Zarzycki wrote: What needs to be done is this: 1) Create the file somewhere else 2) Once the file is in a sane state, move it to the queue directory Josh -- Josh Wisenbaker, ACSA http://www.afp548.com Breaking my server to save yours. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... ...and second thing. I used launchd also for moving some files to another computer. You are using path called "Queue Directories". That means if anything is placed into this directory (not sure about subdirectories, please confirm), the script is launched. Unfortunately (I am not sure if it is also launchd "feature" or not) if I am placing some big file (like pictures in print resolution, but in this case just imagine DVD ISO image), the launchd (or Lingon) isn't checking if the file is open or not. In my opinion it just checking HFS+ header and if some file is added (means record for that file is created - but not content) the script is launched which case in my example "unable to copy because too much characters" error. I did it in my script with checking "lsof" if the file is used or not. Isn't there any other way directly in launchd or Lingon ? Unfortunately, there are no facilities in the OS for knowing whether a file is open or not. I've also just had launchd run a script that checks the file for usage and then moves it... This email sent to site_archiver@lists.apple.com
participants (1)
-
Josh Wisenbaker