#!/bin/bash
/usr/bin/expect  << EOF
spawn /usr/local/pgsql/bin/2.sh
expect "*postgres:"
send "postgres\r"
set timeout 7200
expect eof
EOF

2.sh

#!/bin/bash /usr/local/pgsql/bin/psql -h 192.168.16.26 -p 5432 -U postgres -W -c "select delete_collection_data()" bigdata

 

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2021-06-10
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2022-02-04
  • 2021-11-12
  • 2021-08-14
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案