|Aug 22, 2011, 01:54 AM||#1|
Help with launchd
I have been trying to get launchd working with rss2email for the last few days with no luck. I think I am close, but no cigar yet. Here is what I have managed so far.
1) created this plist file, com.macattack.r2e.plist, in ~/Library/LaunchAgents
<?xml version="1.0" encoding="UTF-8"?>2) Created an sh script, r2e.sh, located in ~/rss2email as shown below:
cd /Users/macattack/rss2email/ ; ./r2e run3) Installed rss2email and made sure it works from running in terminal both "./r2e run" and "./r2e.sh". Both work well and send the feeds to my email address.
4) I added the rss2email folder to .bash_profile to look like this:
# Setting PATH for Python 2.75) When I type "echo $PATH" the output is:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/macattack/rss2email:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin6) When I look in Console, this is the output I get:
8/22/11 1:01:38 AM com.macattack.r2e I: Processing  "index.rss"Yet, when I run "./r2e run" or "./r2e.sh", it emails just fine and there is no problem with the smtp server authenticating. I have come a long way and learned a lot. I feel like I am close but I just can't seem to get it working correctly. I am a complete noob at this and I have just been piecing together what I can find on the forums. I was not able to get the r2e to run directly in the plist file. I tried many different ways. That is why I created the script file. Any help will be greatly appreciated. Thanks in advance.
Last edited by durlecs; Aug 22, 2011 at 04:25 AM.
|Aug 22, 2011, 04:01 AM||#2|
Maybe a Python issue?
I have been working on this more and searching around on the net and I think it may be a Python version problem. I had to install Python 2.7 in order to get the rss2email to work properly from the working directory. So, I am wondering how to specify that the r2e script uses Python 2.7 instead of the 2.6, 2.5, or 2.3 that I found on my system. I am running SL 10.6.8 if that helps. I tried adding:
<key>EnvironmentVariables</key>However, this did not help and it still will not authenticate the email. I really need to get this working as I have spent way too much time on it already. I am about ready to install Ubuntu virtually and just run crontab. Crontab seems much easier. I set it up on another machine and it ran fine under Ubuntu 11.04. I just don't like being defeated by something that seems like should be simple.
|Dec 15, 2011, 12:51 AM||#5|
I just want to add my 2 cents in here quick. All I did was open the "r2e" script that comes with the 2.71 version of rss2email and added the following line to it and all is well.
cd "$(dirname "$0")"
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Launchd Help for the Clueless||myibookg4||Mac Programming||11||Oct 16, 2013 09:50 AM|
|Launchd with PathState||c5kolb||OS X||0||Dec 4, 2012 06:12 PM|
|Launchd with PathState||c5kolb||OS X||0||Dec 4, 2012 05:51 PM|
|launchd-Daemons run every second||mehdies||Mac Programming||6||Nov 20, 2012 11:11 AM|
|launchd help||Latch||Mac Programming||3||Sep 28, 2012 05:13 PM|
All times are GMT -5. The time now is 05:52 AM.