planck

Planck ClojureScript REPL
2017-08-11T04:56:16.291584Z

A beginner question: How do I use pipe or stdin with planck.shell/sh? For example, how do I run a shell command which equals to this?

$ psql dbname < sql-file-name.sql
or
$ cat sql-file-name.sql | psql dbname

mfikes 2017-08-11T05:11:11.413245Z

@tap (shell/sh "sh" "-c" "some command string with pipes")

mfikes 2017-08-11T05:15:41.448154Z

@tap reading lines from *in* is discussed here http://planck-repl.org/scripts.html

2017-08-11T05:19:31.478942Z

That solves my issue. Thank you so much, Mike.