# \#bash

**URL:** https://discuss.ocaml.org/tag/bash/128.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [How to safely integrate and modernize bash programs and functions in OCaml programs?](https://discuss.ocaml.org/t/how-to-safely-integrate-and-modernize-bash-programs-and-functions-in-ocaml-programs/11712)

<div class="topic-metadata">

**Author:** [@Luc\_ML](https://discuss.ocaml.org/u/Luc_ML)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 2:45am UTC](https://discuss.ocaml.org/t/how-to-safely-integrate-and-modernize-bash-programs-and-functions-in-ocaml-programs/11712 "2023-03-20T02:45:09Z")

</div>

I have a bunch of programs in bash using all related commands (awk, sed, grep, find, rsync, tar, zip, etc.). They are structured with functions. They have been working for a while but I don’t know exactly when, how and w…

---

## [Execute bash script within OCaml \[SOLVED\]](https://discuss.ocaml.org/t/execute-bash-script-within-ocaml-solved/1081)

<div class="topic-metadata">

**Author:** [@jonathandoyle](https://discuss.ocaml.org/u/jonathandoyle)\
**Replies:** 8\
**Last updated:** [November 7, 2017, 4:43pm UTC](https://discuss.ocaml.org/t/execute-bash-script-within-ocaml-solved/1081 "2017-11-07T16:43:29Z")

</div>

Is it possible to execute bash scripts within Ocaml code ? I thought of using Sys.command “bash my\_script” but on my example this returns a 255 error (means an “out-of-range” error, not sure how to interpret it) and doe…
