SUMMARY: postgres dump

Jandre Olivier <[email protected]>
Newsgroups gmane.linux.admin.managers
Message-ID <[email protected]>
Hi Everyone,
Thanks for the answers!!!

I use the expect utility to answer all the command line dialogs

here is sample of what i used

#! /usr/bin/expect -f
spawn pg_dump -o hostname -U username dbname -f file
expect "password:"
send "<password>\r"
expect ">"
exit

Cheers

Jandre

-- 
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.