javatophp 发表于 2013-1-30 01:29:22

shell操作postgresql

#!/bin/bashpsql=psqlDB=class4_prHOST=127.0.0.1USER=class4while [ 1 ]dopsql -h $HOST -U $USER $DB << _EOF_      select upload_check();_EOF_echo "sleep 60s..."sleep 30doneexit
页: [1]
查看完整版本: shell操作postgresql