Mac OS X launchd daemon and RR CGI file updating
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 10
- Joined: Fri Mar 14, 2008 8:13 pm
Mac OS X launchd daemon and RR CGI file updating
I have a Launch Agent watching a directory (WatchPaths). When a file is added, removed, or altered by user interaction, the Agent is triggered. However, I need it to be triggered by updates being made by an RR CGI script -- which it is not currently doing.
hsthompson,
Perhaps you can make the CGI log in to ftp://localhost and use FTP to update the files, this simulating user actions. I don't know whether this will work, but you might try.
Best,
Mark
Perhaps you can make the CGI log in to ftp://localhost and use FTP to update the files, this simulating user actions. I don't know whether this will work, but you might try.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
You'll need to check the write permissions of the directory. When a Rev cgi script is executed, it is executed as a different user, which probably won't have write permissions on that directory.
I think the cgi executing user id is 'httpd' - and if my memory isn't failing me, there's an Apache plug-in that allows you to execute things as a different user - suExec or something like that.
Hope this helped,
Jan Schenkel.
I think the cgi executing user id is 'httpd' - and if my memory isn't failing me, there's an Apache plug-in that allows you to execute things as a different user - suExec or something like that.
Hope this helped,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com