<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Some_handy_scripts</id>
		<title>Some handy scripts - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Some_handy_scripts"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;action=history"/>
		<updated>2026-04-09T22:28:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=4833&amp;oldid=prev</id>
		<title>Glenn: spelling</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=4833&amp;oldid=prev"/>
				<updated>2011-10-21T19:00:33Z</updated>
		
		<summary type="html">&lt;p&gt;spelling&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:00, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|Signature=derjohn}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|Signature=derjohn}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Documentaion&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Documentation&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=4817&amp;oldid=prev</id>
		<title>Glenn: +cat</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=4817&amp;oldid=prev"/>
				<updated>2011-10-21T18:54:28Z</updated>
		
		<summary type="html">&lt;p&gt;+cat&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:54, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|Signature=derjohn}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|Signature=derjohn}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentaion]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=2632&amp;oldid=prev</id>
		<title>Daniel15: Somehandyscripts moved to Some handy scripts: Moved page to &quot;correct&quot; name :)</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=2632&amp;oldid=prev"/>
				<updated>2007-07-30T05:59:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;a href=&quot;/Somehandyscripts&quot; class=&quot;mw-redirect&quot; title=&quot;Somehandyscripts&quot;&gt;Somehandyscripts&lt;/a&gt; moved to &lt;a href=&quot;/Some_handy_scripts&quot; title=&quot;Some handy scripts&quot;&gt;Some handy scripts&lt;/a&gt;: Moved page to &amp;quot;correct&amp;quot; name :)&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:59, 30 July 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Daniel15</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=2631&amp;oldid=prev</id>
		<title>Derjohn: inital creation of the page</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Some_handy_scripts&amp;diff=2631&amp;oldid=prev"/>
				<updated>2007-07-29T12:55:17Z</updated>
		
		<summary type="html">&lt;p&gt;inital creation of the page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= =&lt;br /&gt;
The motivation for creating this page was to publish some bash scripts that can be used in combination with util-vserver to make your host management simpler or more comfortable. The idea is, that you can cut&amp;amp;paste them from here to your shell or re-use them in your own managemnt scripts.&lt;br /&gt;
&lt;br /&gt;
{{Question|Question=Show rlimits of all guests||Details=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i in $(ls /etc/vservers/); do echo -n &amp;quot;$i &amp;quot;; if [ -e /etc/vservers/$i/rlimits ]; then for j in $(ls /etc/vservers/$i/rlimits); do echo -en &amp;quot;$j=$(cat /etc/vservers/$i/rlimits/$j) &amp;quot;; done ; fi ; echo &amp;quot;&amp;quot;; done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates an output like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
guest1 as=1048576 rss=131072&lt;br /&gt;
guest2&lt;br /&gt;
guest3 as=1048576 rss=131072&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|Signature=derjohn}}&lt;br /&gt;
&lt;br /&gt;
{{Question|Question=Show next free context ID||Details=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo $(( $(sort /etc/vservers/*/context | tail -n 1) +1 ))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates an output like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
666&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|Signature=derjohn}}&lt;/div&gt;</summary>
		<author><name>Derjohn</name></author>	</entry>

	</feed>