• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Questions about launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about launchd


  • Subject: Re: Questions about launchd
  • From: Josh Wisenbaker <email@hidden>
  • Date: Fri, 24 Aug 2007 08:30:08 -0700


On Aug 24, 2007, at 7:47 AM, Dave Zarzycki wrote:

...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.


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

I've also just had launchd run a script that checks the file for usage and then moves it...


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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Questions about launchd (From: Michal Taurich <email@hidden>)
 >Re: Questions about launchd (From: Dave Zarzycki <email@hidden>)

  • Prev by Date: Re: Questions about launchd
  • Next by Date: Hardware drivers (CD/DVD specifically) and anychrony
  • Previous by thread: Re: Questions about launchd
  • Next by thread: Problem with shutting down.
  • Index(es):
    • Date
    • Thread