opkg update
opkg install pgsql-cli
nano postgres.sh
#!/bin/sh
psql -h 192.168.0.240 -U postgres  -d mypgdatabase<< EOF
select username, password from login;
EOF
chmod 755 postgres.sh
./postgres.sh
 username | password
----------+----------
 sonnyyu  | password
(1 row)

 

Comments powered by CComment