<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Update Pidgin IM status on Ubuntu using cron</title>
	<atom:link href="http://earlruby.org/2008/08/update-pidgin-status-using-cron/feed/" rel="self" type="application/rss+xml" />
	<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/</link>
	<description>this must be the place</description>
	<lastBuildDate>Fri, 27 Aug 2010 00:09:41 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-428</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Thu, 26 Aug 2010 23:48:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-428</guid>
		<description>&quot;source&quot; is a shell script command. We&#039;re using bash in these examples.</description>
		<content:encoded><![CDATA[<p>&#8220;source&#8221; is a shell script command. We&#8217;re using bash in these examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ⬡</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-423</link>
		<dc:creator>⬡</dc:creator>
		<pubDate>Sun, 22 Aug 2010 07:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-423</guid>
		<description>Right on, but is there a way to call &quot;source&quot; from within a program?</description>
		<content:encoded><![CDATA[<p>Right on, but is there a way to call &#8220;source&#8221; from within a program?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-419</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Mon, 16 Aug 2010 03:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-419</guid>
		<description>Good solution, that&#039;s much simpler. However, DBUS can leave old files in place in that directory (after a system crash, for example), so you want to make sure you&#039;re sourcing the latest file. You could do something like:

&lt;pre&gt;
for file in `ls -1tr ~/.dbus/session-bus/`; do
    source &quot;$file&quot;
done
&lt;/pre&gt;

... the last file sourced is always the latest file.</description>
		<content:encoded><![CDATA[<p>Good solution, that&#8217;s much simpler. However, DBUS can leave old files in place in that directory (after a system crash, for example), so you want to make sure you&#8217;re sourcing the latest file. You could do something like:</p>
<pre>
for file in `ls -1tr ~/.dbus/session-bus/`; do
    source "$file"
done
</pre>
<p>&#8230; the last file sourced is always the latest file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeroen</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-416</link>
		<dc:creator>jeroen</dc:creator>
		<pubDate>Fri, 06 Aug 2010 15:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-416</guid>
		<description>like johnkzin suggest, you don’t need to dump the environment to a file.
But there is an even better method :-)
simply read the DBUS_SESSION_BUS_ADDRESS variable from the file in ~/.dbus/session-bus/

for example simply include the following in your bash script

#!/bin/bash
...
for file in ~/.dbus/session-bus/*;do
	source &quot;$file&quot;
done

...</description>
		<content:encoded><![CDATA[<p>like johnkzin suggest, you don’t need to dump the environment to a file.<br />
But there is an even better method <img src='http://earlruby.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
simply read the DBUS_SESSION_BUS_ADDRESS variable from the file in ~/.dbus/session-bus/</p>
<p>for example simply include the following in your bash script</p>
<p>#!/bin/bash<br />
&#8230;<br />
for file in ~/.dbus/session-bus/*;do<br />
	source &#8220;$file&#8221;<br />
done</p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-135</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Sun, 22 Nov 2009 02:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-135</guid>
		<description>Exit Pidgin.

Edit the ~/.purple/status.xml file and get rid of the 50 copies of the same status message.

Restart Pidgin.

Set your current status to the one you want to update / remember.

Get the internal Pidgin status ID with:

/usr/bin/purple-remote &quot;PurpleSavedstatusGetCurrent()&quot;

To set that status with a message, without creating a duplicate entry, enter:

STATUS=[the id number]
/usr/bin/purple-remote &quot;PurpleSavedstatusSetMessage($STATUS, At lunch)&quot;

You can find more info here:

http://developer.pidgin.im/wiki/DbusHowto</description>
		<content:encoded><![CDATA[<p>Exit Pidgin.</p>
<p>Edit the ~/.purple/status.xml file and get rid of the 50 copies of the same status message.</p>
<p>Restart Pidgin.</p>
<p>Set your current status to the one you want to update / remember.</p>
<p>Get the internal Pidgin status ID with:</p>
<p>/usr/bin/purple-remote &#8220;PurpleSavedstatusGetCurrent()&#8221;</p>
<p>To set that status with a message, without creating a duplicate entry, enter:</p>
<p>STATUS=[the id number]<br />
/usr/bin/purple-remote &#8220;PurpleSavedstatusSetMessage($STATUS, At lunch)&#8221;</p>
<p>You can find more info here:</p>
<p><a href="http://developer.pidgin.im/wiki/DbusHowto" rel="nofollow">http://developer.pidgin.im/wiki/DbusHowto</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hmmm</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-134</link>
		<dc:creator>Hmmm</dc:creator>
		<pubDate>Sat, 21 Nov 2009 20:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-134</guid>
		<description>How do  I set it to one of my saved statuses, so there aren&#039;t 50 copies of the same status in my drop-down box?</description>
		<content:encoded><![CDATA[<p>How do  I set it to one of my saved statuses, so there aren&#8217;t 50 copies of the same status in my drop-down box?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnkzin</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-70</link>
		<dc:creator>johnkzin</dc:creator>
		<pubDate>Tue, 18 Aug 2009 21:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-70</guid>
		<description>You don&#039;t need to dump the environment to a file.  You can use something like:

ps -e e &#124; grep pidgin &#124; grep -v grep

If you&#039;re creative, you could even take that output and suck it into a script that finds just the correct variable so you can assign it to something.  Like via invoking it with ``</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need to dump the environment to a file.  You can use something like:</p>
<p>ps -e e | grep pidgin | grep -v grep</p>
<p>If you&#8217;re creative, you could even take that output and suck it into a script that finds just the correct variable so you can assign it to something.  Like via invoking it with &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wearzeep</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-10</link>
		<dc:creator>wearzeep</dc:creator>
		<pubDate>Thu, 13 Nov 2008 00:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-10</guid>
		<description>Thank you so very very much! I have been trying to do this all day, this really helped me, it took a pretty long while for me to find this post.
Thanks again. :)</description>
		<content:encoded><![CDATA[<p>Thank you so very very much! I have been trying to do this all day, this really helped me, it took a pretty long while for me to find this post.<br />
Thanks again. <img src='http://earlruby.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Earl Ruby</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-4</link>
		<dc:creator>Earl Ruby</dc:creator>
		<pubDate>Mon, 29 Sep 2008 18:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-4</guid>
		<description>Glad you found this useful. I just installed Skype at home and at work and found that this technique also works for starting up Skype, so if someone calls my Skype phone the computer where I&#039;m located is the one that currently has Skype running.</description>
		<content:encoded><![CDATA[<p>Glad you found this useful. I just installed Skype at home and at work and found that this technique also works for starting up Skype, so if someone calls my Skype phone the computer where I&#8217;m located is the one that currently has Skype running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ubuntukungfu</title>
		<link>http://earlruby.org/2008/08/update-pidgin-status-using-cron/comment-page-1/#comment-3</link>
		<dc:creator>ubuntukungfu</dc:creator>
		<pubDate>Mon, 29 Sep 2008 10:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.earlruby.org/?p=3#comment-3</guid>
		<description>Hi - this is a great tip! I wonder if you might submit a link to any other tips you write to ubuntukungfu.org? This aims to be the biggest repository of Ubuntu tips. Cheers!</description>
		<content:encoded><![CDATA[<p>Hi &#8211; this is a great tip! I wonder if you might submit a link to any other tips you write to ubuntukungfu.org? This aims to be the biggest repository of Ubuntu tips. Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
