i'm not sure if is the right answer to your questionanyway from psql prompt you can call a shell command by\! <cmd>
andrea
ps I apologise my terrible english.