<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7997313029981170997.post2015657915433161103..comments</id><updated>2009-02-09T03:20:18.778-05:00</updated><category term='mobile'/><category term='Fedora'/><category term='postgres'/><category term='tools'/><category term='sysadmin'/><category term='pentaho'/><category term='community'/><category term='hosting'/><category term='analytics'/><category term='SELinux'/><category term='perl data-structures json'/><category term='redhat'/><category term='audio'/><category term='travel'/><category term='css'/><category term='git'/><category term='tips'/><category term='nginx'/><category term='Spree'/><category term='cakephp'/><category term='email'/><category term='nosql'/><category term='social-networking'/><category term='unicode'/><category term='performance'/><category term='piggybak'/><category term='eye-candy'/><category term='reporting'/><category term='thrift'/><category term='facebook'/><category term='visualization'/><category term='openbsd'/><category term='mysql'/><category term='scalability'/><category term='riak'/><category term='security'/><category term='CentOS'/><category term='graphics'/><category term='cucumber'/><category term='rvm'/><category term='cloud'/><category term='django'/><category term='remote-work'/><category term='networking'/><category term='wordpress'/><category term='perlbrew'/><category term='optimization'/><category term='book review'/><category term='dropbox'/><category term='sinatra'/><category term='design'/><category term='mp3'/><category term='ruby-and-ruby-on-rails'/><category term='testing'/><category term='open-source'/><category term='json'/><category term='ruby'/><category term='yui'/><category term='virtualization'/><category term='COTS'/><category term='Camps'/><category term='javascript'/><category term='workflow'/><category term='sponsorship'/><category term='perl'/><category term='messaging'/><category term='environment'/><category term='gnu'/><category term='lua'/><category term='rpm'/><category term='browsers'/><category term='configuration-management'/><category term='python'/><category term='ecommerce'/><category term='Conference'/><category term='voldemort'/><category term='image'/><category term='jasper'/><category term='clients'/><category term='dbdpg'/><category term='Android'/><category term='database'/><category term='version-control'/><category term='linux'/><category term='USPS'/><category term='data-warehouse'/><category term='openafs'/><category term='cassandra'/><category term='mondaylinks'/><category term='php'/><category term='Debian'/><category term='monitoring'/><category term='liquid-galaxy'/><category term='audit'/><category term='Bucardo'/><category term='Java'/><category term='mongodb'/><category term='API'/><category term='seo'/><category term='SeniorNet'/><category term='company'/><category term='jquery'/><category term='jobs'/><category term='sql'/><category term='search'/><category term='Ubuntu'/><category term='Interchange'/><category term='caching'/><category term='ipv6'/><title type='text'>Comments on End Point Blog: Test::Database Postgres support</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.endpoint.com/feeds/2015657915433161103/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/2015657915433161103/comments/default'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/02/testdatabase-postgres-support.html'/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-359052703181024554</id><published>2009-02-09T03:20:00.000-05:00</published><updated>2009-02-09T03:20:00.000-05:00</updated><title type='text'>I have a bash script that does exactly that, but b...</title><content type='html'>I have a bash script that does exactly that, but because I need to test remote connections too (and it is easy just to scp from script and than ssh run) - they all connect using tcp/ip.&lt;BR/&gt;&lt;BR/&gt;in essence it looks like that:&lt;BR/&gt;&lt;BR/&gt;#!/bin/bash&lt;BR/&gt;&lt;BR/&gt;TEMP_DIR=&amp;quot;/var/tmp/&amp;quot;&lt;BR/&gt;&lt;BR/&gt;if [ $(($#)) -ne 2 ]; then&lt;BR/&gt;echo &amp;quot;params: port and data directory name&amp;quot;&lt;BR/&gt;exit 1;&lt;BR/&gt;fi&lt;BR/&gt;&lt;BR/&gt;if [ $(($1)) -lt 1024 ]; then&lt;BR/&gt;echo &amp;quot;port value needs to be between 1024 and 65536. not $(($1))&amp;quot;&lt;BR/&gt;exit 1;&lt;BR/&gt;fi&lt;BR/&gt;&lt;BR/&gt;export PGPORT=$1&lt;BR/&gt;export PGDATA=$TEMP_DIR/database$1&lt;BR/&gt;&lt;BR/&gt;echo &amp;quot;attempting to create database instance $2&amp;quot;&lt;BR/&gt;&lt;BR/&gt;initdb -A trust &amp;gt; /dev/null&lt;BR/&gt;&lt;BR/&gt;if [ $? != 0 ]; then&lt;BR/&gt;echo &amp;quot;problems with initdatabase&amp;quot;&lt;BR/&gt;exit 1;&lt;BR/&gt;fi&lt;BR/&gt;&lt;BR/&gt;echo &amp;quot;starting instance with database \&amp;quot;$2:$PGPORT\&amp;quot;&amp;quot;&lt;BR/&gt;&lt;BR/&gt;#enable listening on ethernet interfaces &lt;BR/&gt;&lt;BR/&gt;echo &amp;quot;listen_addresses=&amp;#39;*&amp;#39;&amp;quot; &amp;gt;&amp;gt; $PGDATA/postgresql.conf&lt;BR/&gt;&lt;BR/&gt;pg_ctl -w start &amp;gt;/dev/null&lt;BR/&gt;if [ $? != 0 ]; then&lt;BR/&gt;echo &amp;quot;problems starting up temporary database $2:$PGPORT&amp;quot;&lt;BR/&gt;rm -rf $PGDATA&lt;BR/&gt;exit 1;&lt;BR/&gt;fi&lt;BR/&gt;&lt;BR/&gt;(altho it is a part of much bigger module, and tescase).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/2015657915433161103/comments/default/359052703181024554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/2015657915433161103/comments/default/359052703181024554'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/02/testdatabase-postgres-support.html?showComment=1234167600000#c359052703181024554' title=''/><author><name>Grzegorz J</name><uri>http://www.blogger.com/profile/01582040055358451515</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/02/testdatabase-postgres-support.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-2015657915433161103' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/2015657915433161103' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-916242824'/></entry></feed>
