Mac OS X launchd daemon and RR CGI file updating

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
hsthompson
Posts: 10
Joined: Fri Mar 14, 2008 8:13 pm

Mac OS X launchd daemon and RR CGI file updating

Post by hsthompson »

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.
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark »

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
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
Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel »

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
Post Reply