I can't seem to get the following to work in shake
:
cmd_ (AddEnv "PGPASSWORD" "REDACTED") "bzcat /tmp/db.sql.bz2 | psql -U pguser -h localhost dbname"
I can't seem to get the following to work in shake
:
cmd_ (AddEnv "PGPASSWORD" "REDACTED") "bzcat /tmp/db.sql.bz2 | psql -U pguser -h localhost dbname"
In Shake, the cmd
function and variants spawn processes directly by default. The pipe syntax is only available as part of the OS's shell functionality. To ask Shake to spawn things using the shell add the argument Shell
.