<?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: Helping to fix Wall Street	</title>
	<atom:link href="https://blog.allmybase.com/2009/07/28/helping-to-fix-wall-street/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.allmybase.com/2009/07/28/helping-to-fix-wall-street/</link>
	<description>...are belong to the internet.</description>
	<lastBuildDate>Wed, 29 Jul 2009 07:28:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: us3r		</title>
		<link>https://blog.allmybase.com/2009/07/28/helping-to-fix-wall-street/#comment-30</link>

		<dc:creator><![CDATA[us3r]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://allmybase.com/?p=88#comment-30</guid>

					<description><![CDATA[nice :) but if smb want to use this script without curl:

#!/usr/bin/perl

# usage
# ./script warn_level critical_level

use strict;
use warnings;
use LWP::Simple;
my ($WARNING_LOW,$CRITICAL_LOW) = @ARGV;

sub state {
	my ($msg,$status) = @_;
	print $msg; exit $status;
}

my $url = &quot;http://www.marketwatch.com/m/quotes/INDU&quot;;
my $content = get($url) or die $!;
if ($content =~ m/lasttrade number\&quot;\&#062;\$(\w,\w{3})\.\w{2}/){
   my $dj = $1; $dj =~ s/[,.]//;
   ($dj &#060; $WARNING_LOW) ? ($dj &#060; $CRITICAL_LOW) ?  state(&#034;Critical: $dj&#034;, &#034;2&#034;) : state(&#034;Warning: $dj&#034;,&#034;1&#034;) : state(&#034;OK: $dj&#034;,&#034;0&#034;)  ; 
} else {
	print &#034;Unknown problem...&#034; ; exit 4;
}]]></description>
			<content:encoded><![CDATA[<p>nice 🙂 but if smb want to use this script without curl:</p>
<p>#!/usr/bin/perl</p>
<p># usage<br />
# ./script warn_level critical_level</p>
<p>use strict;<br />
use warnings;<br />
use LWP::Simple;<br />
my ($WARNING_LOW,$CRITICAL_LOW) = @ARGV;</p>
<p>sub state {<br />
	my ($msg,$status) = @_;<br />
	print $msg; exit $status;<br />
}</p>
<p>my $url = &#8220;http://www.marketwatch.com/m/quotes/INDU&#8221;;<br />
my $content = get($url) or die $!;<br />
if ($content =~ m/lasttrade number\&#8221;\&gt;\$(\w,\w{3})\.\w{2}/){<br />
   my $dj = $1; $dj =~ s/[,.]//;<br />
   ($dj &lt; $WARNING_LOW) ? ($dj &lt; $CRITICAL_LOW) ?  state(&quot;Critical: $dj&quot;, &quot;2&quot;) : state(&quot;Warning: $dj&quot;,&quot;1&quot;) : state(&quot;OK: $dj&quot;,&quot;0&quot;)  ;<br />
} else {<br />
	print &quot;Unknown problem&#8230;&quot; ; exit 4;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Donald Ade		</title>
		<link>https://blog.allmybase.com/2009/07/28/helping-to-fix-wall-street/#comment-29</link>

		<dc:creator><![CDATA[Donald Ade]]></dc:creator>
		<pubDate>Tue, 28 Jul 2009 15:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://allmybase.com/?p=88#comment-29</guid>

					<description><![CDATA[Neat! :)]]></description>
			<content:encoded><![CDATA[<p>Neat! 🙂</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
