Cédric Buschini mentioned :
=> psql=`psql -h XXX.XXX.XXX.XXX. -U USER -D DATABASE -c 'SELECT COUNT(*) FROM '$3''`
=>
=> this is not perform using a call with crontab, but launching the script (./SCRIPT.SH) works...
=>
=> to check if it works, I added an echo $psql
=>
=>
=> Any ideas ???
psql=`psql -h XXX.XXX.XXX.XXX. -U USER -D DATABASE -c "SELECT COUNT(*) FROM '$3'"`