$cmd = "/usr/local/pgsql/bin/pg_restore -p 5555 -U postgres -h localhost -d $dbname_neu /root/restore/postgres-$var 2> /root/restore/error.log"; print "restore: $cmd\n"; system( $cmd );