1

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"
Neil Mitchell
  • 9,090
  • 1
  • 27
  • 85
Saurabh Nanda
  • 6,373
  • 5
  • 31
  • 60

1 Answers1

1

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.

Neil Mitchell
  • 9,090
  • 1
  • 27
  • 85