# Call functions from shell using scripts

**URL:** <https://forum.elixirforum.com/t/call-functions-from-shell-using-scripts/34657>\
**Category:** Questions\
**Tags:** script, learning-elixir, powershell\
**Created:** [September 30, 2020, 12:37pm UTC](https://forum.elixirforum.com/t/call-functions-from-shell-using-scripts/34657 "2020-09-30T12:37:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nicd](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nicd/32/2357_2.png) [@Nicd](https://forum.elixirforum.com/u/Nicd)\
**Post date:** [September 30, 2020, 1:18pm UTC](https://forum.elixirforum.com/t/call-functions-from-shell-using-scripts/34657/2 "2020-09-30T13:18:30Z")

</div>

Try outputting the result, otherwise it is just thrown away:

```elixir
➜ ~ elixir -r ListModule.exs -e "ListModule.sum([])"
➜ ~ elixir -r ListModule.exs -e "IO.inspect(ListModule.sum([]))"
0
➜ ~ elixir -r ListModule.exs -e "IO.inspect(ListModule.sum([1, 2, 3]))"
6

```

---

_[View the full topic](https://forum.elixirforum.com/t/call-functions-from-shell-using-scripts/34657)._
