<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rickogden.com &#187; bash</title>
	<atom:link href="http://www.rickogden.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickogden.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 14:29:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Arithmetic in Bash</title>
		<link>http://www.rickogden.com/2009/12/arithmetic-in-bash/</link>
		<comments>http://www.rickogden.com/2009/12/arithmetic-in-bash/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:33:29 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=206</guid>
		<description><![CDATA[Bash is not exactly brilliant at performing numerical calculations. Recently I&#8217;ve required the need to see how many people are currently logged in on the terminal servers through NX. Now, if people are logged in via standard SSH, then it&#8217;s quite easy to count:
who &#124; wc -l
However, if you want to perform a line count [...]]]></description>
			<content:encoded><![CDATA[<p>Bash is not exactly brilliant at performing numerical calculations. Recently I&#8217;ve required the need to see how many people are currently logged in on the terminal servers through NX. Now, if people are logged in via standard SSH, then it&#8217;s quite easy to count:</p>
<pre class="brush: bash; light: true;">who | wc -l</pre>
<p>However, if you want to perform a line count of the NX list, you have 6 lines at the top which are not part of the count. In order to perform this subtraction, we need to do a calculation. To do this in bash we use a $(()):</p>
<pre class="brush: bash; light: true;">echo $((2 + 2))</pre>
<p>So, if we were to use this when performing the command on nxserver, this is how it would look in the end:</p>
<pre class="brush: bash; light: true;">echo $(($(/usr/NX/bin/nxserver --list | wc -l) - 6))</pre>
<p>Or, if you&#8217;re not running this script as root (and using sudo):</p>
<pre class="brush: bash; light: true;">echo $(($(sudo /usr/NX/bin/nxserver --list | wc -l) - 6))</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/12/arithmetic-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Ubuntu FreeNX Install Script</title>
		<link>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/</link>
		<comments>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 09:27:30 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=160</guid>
		<description><![CDATA[I&#8217;ve just updated the FreeNX install script to download and install the latest version of the NX Client from NoMachine. If you have used the previous version of this script, then you can just execute this version and it will automatically update your NX Client.
Download the latest version from here.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just updated the <a href="http://freenx.berlios.de/" target="_blank">FreeNX</a> install script to download and install the latest version of the NX Client from <a href="http://www.nomachine.com/" target="_blank">NoMachine</a>. If you have used the previous version of this script, then you can just execute this version and it will automatically update your NX Client.</p>
<p><a href="http://www.rickogden.com/labs/freenx-install-ubuntu/">Download the latest version from here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FreeNX Installation Script for Ubuntu</title>
		<link>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/</link>
		<comments>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:31:49 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=111</guid>
		<description><![CDATA[I have introduced a Labs section to my site. This section will contain on going projects, applications and scripts which I am working on for people to play with a leave feedback.
At the same time I have added a script to the section, which automatically downloads and installs FreeNX onto an Ubuntu system. The script [...]]]></description>
			<content:encoded><![CDATA[<p>I have introduced a <a href="http://www.rickogden.com/labs/">Labs</a> section to my site. This section will contain on going projects, applications and scripts which I am working on for people to play with a leave feedback.</p>
<p>At the same time I have added a script to the section, which automatically downloads and installs FreeNX onto an Ubuntu system. <a href="http://www.rickogden.com/labs/freenx-install-ubuntu/">The script and further details are available from here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
