# Run a shell command with a pipe operator

**URL:** <https://forum.elixirforum.com/t/run-a-shell-command-with-a-pipe-operator/12662>\
**Category:** Questions\
**Tags:** erlang, troubleshooting\
**Created:** [February 21, 2018, 8:37am UTC](https://forum.elixirforum.com/t/run-a-shell-command-with-a-pipe-operator/12662 "2018-02-21T08:37:50Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![tcoopman](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tcoopman/32/8112_2.png) [@tcoopman](https://forum.elixirforum.com/u/tcoopman)\
**Post date:** [February 24, 2018, 2:30pm UTC](https://forum.elixirforum.com/t/run-a-shell-command-with-a-pipe-operator/12662/9 "2018-02-24T14:30:05Z")

</div>

`System.cmd("sh", ["sleep 0.1"])` results in `/usr/bin/sh: sleep 0.1: No such file or directory {"", 127}`. So this solution doesn’t seem to work

---

_[View the full topic](https://forum.elixirforum.com/t/run-a-shell-command-with-a-pipe-operator/12662)._
