<?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>Andrew R. Jones &#187; Linux</title>
	<atom:link href="http://andrew-jones.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrew-jones.com</link>
	<description>Andrew Jones' Site</description>
	<lastBuildDate>Tue, 01 Dec 2009 20:30:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Linux at Command</title>
		<link>http://andrew-jones.com/2009/06/23/the-linux-at-command/</link>
		<comments>http://andrew-jones.com/2009/06/23/the-linux-at-command/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 17:00:33 +0000</pubDate>
		<dc:creator>Andrew Jones</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://andrew-jones.com/?p=248</guid>
		<description><![CDATA[I recently wanted to run a set of commands on a Linux machine at some point in the future. I knew about using cron to schedule a set of commands at defined intervals, but I only wanted to run the commands once at a specific time on a specific date. After searching the internet I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to run a set of commands on a Linux machine at some point in the future. I knew about using <code>cron</code> to schedule a set of commands at defined intervals, but I only wanted to run the commands once at a specific time on a specific date. After searching the internet I found the <code>at</code> command, which allowed me to do exactly what I wanted.</p>
<p>The <code>at</code> command will execute a command or a script at a later time or date and allows for some fairly complex time specifications. Below are two examples of the <code>at</code> command:</p>
<p>1) using <code>at</code> to execute commands taken from <code>stdin</code> at 17:00 on the same day:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ at <span style="color: #000000;">17</span>:00
at<span style="color: #000000; font-weight: bold;">&gt;</span> ...
at<span style="color: #000000; font-weight: bold;">&gt;</span> ...
at<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>EOT<span style="color: #000000; font-weight: bold;">&gt;</span>
job <span style="color: #000000;">1</span> at <span style="color: #000000;">2009</span>-06-<span style="color: #000000;">22</span> <span style="color: #000000;">17</span>:00</pre></div></div>

<p>2) using <code>at</code> to execute commands from a file on a June 19 at 17:00:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ at <span style="color: #660033;">-f</span> myscript.sh <span style="color: #000000;">17</span>:00 Jun <span style="color: #000000;">26</span>
job <span style="color: #000000;">2</span> at <span style="color: #000000;">2009</span>-06-<span style="color: #000000;">26</span> <span style="color: #000000;">17</span>:00</pre></div></div>

<p>You can also use <code>atq</code> to list the scheduled jobs, as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ atq
<span style="color: #000000;">1</span>      Mon Jun <span style="color: #000000;">22</span> <span style="color: #000000;">17</span>:00:00 <span style="color: #000000;">2009</span> a ajones
<span style="color: #000000;">2</span>      Fri Jun <span style="color: #000000;">26</span> <span style="color: #000000;">17</span>:00:00 <span style="color: #000000;">2009</span> a ajones</pre></div></div>

<p>The <code>atrm</code> command allows you to remove a scheduled job:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ atrm <span style="color: #000000;">1</span>
$ atq
<span style="color: #000000;">2</span>      Fri Jun <span style="color: #000000;">26</span> <span style="color: #000000;">17</span>:00:00 <span style="color: #000000;">2009</span> a ajones</pre></div></div>

<h3 id="toc-links">Links</h3>
<ul>
<li><a href="http://www.ibm.com/developerworks/linux/library/l-job-scheduling.html">Linux tip: Job scheduling with cron and at</a></li>
<li><a href="http://www.oreillynet.com/linux/cmd/cmd.csp?path=a/at">Linux Command Directory: at</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://andrew-jones.com/2009/06/23/the-linux-at-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to Cisco VPN with Ubuntu 9.04</title>
		<link>http://andrew-jones.com/2009/06/03/connecting-to-cisco-vpn-with-ubuntu-9dot04/</link>
		<comments>http://andrew-jones.com/2009/06/03/connecting-to-cisco-vpn-with-ubuntu-9dot04/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 07:00:01 +0000</pubDate>
		<dc:creator>Andrew Jones</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrew-jones.com/?p=254</guid>
		<description><![CDATA[I recently wanted to connect to my works Cisco VPN network from my home Ubuntu 9.04 (Jaunty Jackalope) PC. As it turned out this is very straightforward.
Firstly you need to install support for the VPN protocol, which for a Cisco network meant using the following command:

$ sudo apt-get install network-manager-vpnc

Once this is installed, right click [...]]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to connect to my works Cisco VPN network from my home Ubuntu 9.04 (Jaunty Jackalope) PC. As it turned out this is very straightforward.</p>
<p>Firstly you need to install support for the VPN protocol, which for a Cisco network meant using the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> network-manager-vpnc</pre></div></div>

<p>Once this is installed, right click on the network icon in the system try and choose <em>Edit Connections</em>.</p>
<p><img src="http://andrew-jones.com/wp-content/uploads/2009/06/edit-connections.png" alt="Edit connections" title="edit-connections" width="212" height="138" class="size-full wp-image-259" /></p>
<p>Select the VPN tab. You are then able create a new connection by choosing <em>Add</em>, or if you have a profile file then you can choose <em>Import</em> and select the file.</p>
<p><img src="http://andrew-jones.com/wp-content/uploads/2009/06/network-connections.png" alt="network-connections" title="network-connections" width="472" height="341" class="alignnone size-full wp-image-260" /></p>
<p>At this point you may need to restart the network manager, or restart your machine. Do this if you get any &#8220;no valid secrets&#8221; errors.</p>
<p>You should now be able connect to the VPN network by left clicking on the network icon, hovering over the <em>VPN Connections</em> option and choosing the profile from the list.</p>
<p>For more information on and instructions for other protocols look at the VPN topic on the <a href="https://wiki.ubuntu.com/VPN">Ubuntu Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrew-jones.com/2009/06/03/connecting-to-cisco-vpn-with-ubuntu-9dot04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
