<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="FE56LNW7B3" class="envelope" style="padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; margin-bottom: 3px; font-family: 'Lucida Grande'; "><br><span class="hidden" style="position: fixed; top: -900px; left: -900px; ">:</span><span class="message" style="word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; ">I have the world's dumbest question today. I am running a bash script that goes through several directories (and each of their several subdirectories) of shapefiles to run shp2pgsql and put them into the correct PSQL schema and table.  I'd like to be able to set it and forget it, so to speak, but each time, the shell is prompting me for the user's password. Is there a way to hardcode the password in?</span></div><div class="event" style="color: rgb(170, 170, 170); text-align: center; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; font-family: 'Lucida Grande'; "><span class="timestamp hidden" style="position: fixed; top: -900px; left: -900px; display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">[</span><span class="timestamp" style="display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">4:06pm</span><span class="timestamp hidden" style="position: fixed; top: -900px; left: -900px; display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">] </span><b><br></b></div><div class="event" style="text-align: left;color: rgb(170, 170, 170); padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; font-family: 'Lucida Grande'; "><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>#!/bin/bash</b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>for dir in BG CD CONCITY COUNTY COUSUB LINEARWATER PRIMARYROADS PRISECROADS RAILS ROADS STATE SUBMCD TABBLOCK</b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>do</b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>        ldir="$(echo ${dir} | tr 'A-Z' 'a-z')" >> download.log</b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>shp2pgsql -s 4326 -p ${dir}/tl_2010_01_${ldir}10 public.${ldir} | psql -h localhost -d geotest -U uname -W pass >> load.log</b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b><br></b></div><div class="event" style="text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 2px; padding-left: 5px; word-wrap: break-word; -webkit-line-break: after-white-space; -webkit-nbsp-mode: space; "><b>done</b></div></div><div id="MV6GFDOW7B3" class="envelope" style="padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; margin-bottom: 3px; font-family: 'Lucida Grande'; "><span class="timestamp hidden" style="position: fixed; top: -900px; left: -900px; display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">[</span><span class="timestamp" style="display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">4:07pm</span><span class="timestamp hidden" style="position: fixed; top: -900px; left: -900px; display: block; margin-top: 0px; margin-left: 5px; float: right; font-size: 9px; color: rgb(136, 136, 136); word-wrap: normal; ">]</span><span class="hidden" style="position: fixed; top: -900px; left: -900px; z-index: auto; "><br>Here is the script: <a href="http://pastebin.com/prWLzEtk">http://pastebin.com/prWLzEtk</a>:</span></div></body></html>