1 2 3 4 5 6 7
#!/bin/sh for i in $*; do psql -At -h miguel -U luca -c "SELECT pg_sleep( $i ); SELECT $i;" testdb & done echo