> Below is a typical postmaster.pid > > /usr/share/postgresql/postmaster.pid > ... > 2394 > /var/lib/pgsql/data > 5432001 0 > ... > > Any hint how to extract '2394' out from postmaster.pid? > > Howard.
a simple (although i imagine there's a more efficient way) way would be pgsql_pid=`cat /usr/share/postgresql/postmaster.pid | head -n 1` $pgsql_pid would then contain the pid. ramil -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
