Hey,
I am trying to automate something that I have to do over and over again, that I think could easily be done in a script in 10 minutes and then I could run it any time....ahhh the lazy programmer
What I need done will be some command line stuff (I am working on Linux BTW), but the only thing stopping me is that I have to supply a password to my commands. Part of what I want is to pg_dump (postgresql stuff) some tables, which would require me to send a command to the command line and then supply a password....how do you do this??
I came across this before but I can't remember how to do it!! I think I remember someone telling me there was a function or perl module for this. The exact command would be
Then it asks you for a password.
Any help?
Thanks in advance
Later
I am trying to automate something that I have to do over and over again, that I think could easily be done in a script in 10 minutes and then I could run it any time....ahhh the lazy programmer
What I need done will be some command line stuff (I am working on Linux BTW), but the only thing stopping me is that I have to supply a password to my commands. Part of what I want is to pg_dump (postgresql stuff) some tables, which would require me to send a command to the command line and then supply a password....how do you do this??
I came across this before but I can't remember how to do it!! I think I remember someone telling me there was a function or perl module for this. The exact command would be
Code:
pg_dump -t table_name -c -D -R -f table_name.sql database_name -U myName
Then it asks you for a password.
Any help?
Thanks in advance
Later